← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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