← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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