← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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