← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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