← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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