← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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