← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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