← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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