← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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