← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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