← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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