← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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