← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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