← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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