← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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