← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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