← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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