← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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