← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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