← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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