← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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