← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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