← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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