← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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