← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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