← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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