← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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