← Your first website lesson New set →

Web Worksheet: Your First Website

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

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