← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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