← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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