← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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