← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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