← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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