← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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