← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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