← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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