← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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