← Your first website lesson New set →

Web Worksheet: Your First Website

HTML and CSS lesson 29: Your first website · Set 60 · 40 questions
TalentJR

Code tip (One file per job): Tags → index.html; selector { … } → style.css; let, alert, console.log → script.js. Plan → write the HTML → add CSS → test in a browser → publish. Use small letters and dashes in file names; save and refresh to see changes.

NameDateTime takenScore ___ / 40
  1. 1.🚀 Which file should this code go in: <a href="a.html">Go</a> (a) style.css (b) index.html (c) script.js
  2. 2.🚀 Which tag loads script.js into a page? (a) <a href="script.js"> (b) <js src="script.js"> (c) <link script.js> (d) <script src="script.js">
  3. 3.True or false: alert(score); goes in script.js. (a) True (b) False
  4. 4.🚀 Which file should this code go in: console.log(5 + 2); (a) style.css (b) index.html (c) script.js
  5. 5.True or false: alert(score); goes in index.html. (a) True (b) False
  6. 6.🔢 To build and share your first web page, which comes FIRST? (a) write the HTML (b) publish it online (c) add CSS styles (d) plan what to show
  7. 7.🚀 Which file should this code go in: #top { color: blue; } (a) script.js (b) index.html (c) style.css
  8. 8.True or false: #top { color: blue; } goes in index.html. (a) False (b) True
  9. 9.🚀 Should file names have spaces, like my page.html? (a) Yes (b) No
  10. 10.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) index.html (c) style.css
  11. 11.True or false: #top { color: blue; } goes in script.js. (a) False (b) True
  12. 12.True or false: score = score + 1; goes in index.html. (a) True (b) False
  13. 13.🚀 Which file should this code go in: body { margin: 0; } (a) index.html (b) script.js (c) style.css
  14. 14.🚀 Which program lets you see your web page while you build it? (a) a music player (b) a photo viewer (c) a calculator (d) a web browser
  15. 15.🚀 Which file is best for code that reacts to clicks? (a) notes.txt (b) style.css (c) index.html (d) script.js
  16. 16.True or false: .box { padding: 8px; } goes in script.js. (a) True (b) False
  17. 17.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) publish it online (b) test in a browser (c) write the HTML (d) add CSS styles
  18. 18.🚀 Which file should this code go in: .box { padding: 8px; } (a) style.css (b) index.html (c) script.js
  19. 19.🚀 Where in index.html does the link to style.css go? (a) in the head (b) in the footer (c) after </html> (d) inside a <p>
  20. 20.🔢 To build and share your first web page, what comes right after “add CSS styles”? (a) plan what to show (b) publish it online (c) test in a browser (d) write the HTML
  21. 21.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) publish it online (c) plan what to show (d) test in a browser
  22. 22.True or false: h1 { font-size: 32px; } goes in index.html. (a) False (b) True
  23. 23.🚀 Which file should this code go in: score = score + 1; (a) style.css (b) index.html (c) script.js
  24. 24.🚀 You change your code. What should you do to see the change? (a) switch off the PC (b) delete the file (c) save and refresh (d) rename the folder
  25. 25.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) script.js (b) style.css (c) index.html
  26. 26.True or false: <ul><li>Art</li></ul> goes in style.css. (a) False (b) True
  27. 27.🚀 Which file should this code go in: alert("Hi"); (a) script.js (b) index.html (c) style.css
  28. 28.🚀 Which file is best for the colours and fonts? (a) style.css (b) index.html (c) photo.jpg (d) script.js
  29. 29.🔢 To build and share your first web page, which comes first: “plan what to show” or “add CSS styles”? (a) plan what to show (b) add CSS styles
  30. 30.🔢 To build and share your first web page, which comes first: “plan what to show” or “test in a browser”? (a) test in a browser (b) plan what to show
  31. 31.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) index.html (b) style.css (c) script.js
  32. 32.True or false: body { margin: 0; } goes in style.css. (a) False (b) True
  33. 33.True or false: let score = 0; goes in script.js. (a) False (b) True
  34. 34.True or false: <a href="a.html">Go</a> goes in index.html. (a) False (b) True
  35. 35.🚀 Which file should this code go in: p { color: red; } (a) index.html (b) style.css (c) script.js
  36. 36.🚀 What is the home page file of a website usually called? (a) main.png (b) start.js (c) index.html (d) home.css
  37. 37.🔢 To build and share your first web page, which comes first: “publish it online” or “plan what to show”? (a) plan what to show (b) publish it online
  38. 38.🚀 Which file should this code go in: <p>Hello!</p> (a) style.css (b) index.html (c) script.js
  39. 39.True or false: <a href="a.html">Go</a> goes in script.js. (a) False (b) True
  40. 40.🔢 To build and share your first web page, what comes right after “write the HTML”? (a) add CSS styles (b) test in a browser (c) plan what to show (d) publish it online

Answer key

  1. index.html
  2. <script src="script.js">
  3. True
  4. script.js
  5. False
  6. plan what to show
  7. style.css
  8. False
  9. No
  10. index.html
  11. False
  12. False
  13. style.css
  14. a web browser
  15. script.js
  16. False
  17. write the HTML
  18. style.css
  19. in the head
  20. test in a browser
  21. publish it online
  22. False
  23. script.js
  24. save and refresh
  25. style.css
  26. False
  27. script.js
  28. style.css
  29. plan what to show
  30. plan what to show
  31. index.html
  32. True
  33. True
  34. True
  35. style.css
  36. index.html
  37. plan what to show
  38. index.html
  39. False
  40. add CSS styles

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids