← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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