← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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