← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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