← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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