← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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