← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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