← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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