← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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