← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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