← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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