← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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