← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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