← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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