← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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