← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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