← Your first website lesson New set →

Web Worksheet: Your First Website

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

Answer key

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

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