← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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