← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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