← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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