← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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