← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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