← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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