← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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