← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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