← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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