← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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