← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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