← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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