← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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