← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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