← HTML comments lesson New set →

HTML Worksheet: Comments

HTML and CSS lesson 9: HTML comments · Set 147 · 40 questions
TalentJR

Code tip (Hidden notes): A comment is <!-- note -->: it starts with <!-- and ends with -->. Anything inside a comment, even a whole <p>, is not shown. Comments can be read with “view source” — never put secrets in them.

NameDateTime takenScore ___ / 40
  1. 1.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <!-- <p>Good morning!</p> -->
    <p>Hello, world!</p>
    (a) Good morning! (b) Hello, world! (c) Our school trip
  2. 2.💬 How does an HTML comment end? (a) >> (b) */ (c) // (d) -->
  3. 3.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>The red kite</p>
    <p>My pets</p>
    <!-- <p>Fun facts</p> -->
    (a) The red kite (b) Fun facts (c) Rain today (d) My pets
  4. 4.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    (a) My pets (b) Hello, world! (c) I love mangoes.
  5. 5.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
    <p>My pets</p>
    (a) I love mangoes. (b) Our school trip (c) My pets
  6. 6.💬 How does an HTML comment start? (a) # (b) // (c) /* (d) <!--
  7. 7.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>My pets</p>
    <!-- <p>The red kite</p> -->
    (a) Hello, world! (b) The red kite (c) My pets
  8. 8.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Fun facts</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Hello, world!</p> -->
  9. 9.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>My best friend</p>
    <!-- <p>Rain today</p> -->
    (a) Cricket is fun. (b) My best friend (c) Rain today
  10. 10.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <p>I love mangoes.</p>
    <p>Our school trip</p>
  11. 11.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <!-- <p>My best friend</p> -->
    <!-- <p>Rain today</p> -->
  12. 12.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <!-- <p>Fun facts</p> -->
    (a) Rain today (b) I love mangoes. (c) Fun facts
  13. 13.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>The red kite</p>
    <p>Our school trip</p>
    <!-- <p>Good morning!</p> -->
    (a) Good morning! (b) The red kite (c) My pets (d) Our school trip
  14. 14.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Our school trip</p>
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    (a) My best friend (b) Hello, world! (c) Our school trip (d) Fun facts
  15. 15.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Rain today</p> -->
    <!-- <p>My best friend</p> -->
  16. 16.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>Our school trip</p>
    <!-- <p>Cricket is fun.</p> -->
    (a) Our school trip (b) Cricket is fun. (c) Good morning!
  17. 17.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>I love mangoes.</p>
    <p>My pets</p>
    (a) Good morning! (b) I love mangoes. (c) My pets
  18. 18.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    <p>Good morning!</p>
    (a) Our school trip (b) Good morning! (c) Cricket is fun.
  19. 19.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    <!-- <p>Good morning!</p> -->
    (a) My pets (b) My best friend (c) Cricket is fun. (d) Good morning!
  20. 20.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    <!-- <p>Hello, world!</p> -->
    (a) Fun facts (b) Our school trip (c) Hello, world! (d) I love mangoes.
  21. 21.💬 Does the browser show comments on the page? (a) No (b) Yes
  22. 22.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>Good morning!</p> -->
    <p>Hello, world!</p>
    (a) Hello, world! (b) The red kite (c) Good morning!
  23. 23.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    (a) Hello, world! (b) My pets (c) The red kite (d) Cricket is fun.
  24. 24.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Cricket is fun.</p>
    (a) Hello, world! (b) Cricket is fun. (c) I love mangoes. (d) My best friend
  25. 25.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <p>Fun facts</p>
    (a) Fun facts (b) Rain today (c) I love mangoes. (d) The red kite
  26. 26.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    <p>Hello, world!</p>
  27. 27.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>I love mangoes.</p> -->
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) I love mangoes. (c) Fun facts (d) My best friend
  28. 28.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <p>I love mangoes.</p>
    <p>My best friend</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Good morning!</p> -->
  29. 29.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>Rain today</p>
    <!-- <p>My best friend</p> -->
    <p>Hello, world!</p>
    (a) Hello, world! (b) My best friend (c) The red kite (d) Rain today
  30. 30.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <p>Hello, world!</p>
    <!-- <p>The red kite</p> -->
  31. 31.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Good morning!</p> -->
  32. 32.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>Good morning!</p>
    <!-- <p>Cricket is fun.</p> -->
  33. 33.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Good morning!</p>
    <!-- <p>My pets</p> -->
    <p>The red kite</p>
    (a) My best friend (b) The red kite (c) Good morning! (d) My pets
  34. 34.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
    (a) Good morning! (b) Cricket is fun. (c) My best friend
  35. 35.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <!-- <p>Our school trip</p> -->
  36. 36.💬 Why do coders write comments? (a) to add colour (b) to show pictures (c) to make links (d) to leave notes
  37. 37.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
  38. 38.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <p>Our school trip</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>Fun facts</p>
  39. 39.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    (a) The red kite (b) Good morning! (c) I love mangoes.
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Our school trip</p>
    <p>My pets</p>
    <p>The red kite</p>

Answer key

  1. Good morning!
  2. -->
  3. Fun facts
  4. I love mangoes.
  5. Our school trip
  6. <!--
  7. The red kite
  8. 1
  9. Rain today
  10. 2
  11. 1
  12. Fun facts
  13. Good morning!
  14. Hello, world!
  15. 1
  16. Cricket is fun.
  17. Good morning!
  18. Cricket is fun.
  19. Good morning!
  20. Hello, world!
  21. No
  22. Good morning!
  23. Hello, world!
  24. I love mangoes.
  25. The red kite
  26. 2
  27. I love mangoes.
  28. 2
  29. My best friend
  30. 2
  31. 1
  32. 2
  33. My pets
  34. My best friend
  35. 2
  36. to leave notes
  37. 1
  38. 3
  39. Good morning!
  40. 3

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