← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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