← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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