← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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