← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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