← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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