← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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