← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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