← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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