← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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