← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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