← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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