← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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