← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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