← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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