← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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