← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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