← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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