← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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