← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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