← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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