← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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