← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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