← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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