← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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