← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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