← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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