← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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