← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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