← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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