← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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