← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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