← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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