← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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