← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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