← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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