← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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