← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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