← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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