← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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