← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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