← Tags and elements lesson New set →

HTML Worksheet: Tags and Elements

HTML and CSS lesson 2: Tags and elements · Set 1 · 40 questions
TalentJR

Code tip (Open, then close): A tag is written in angle brackets: <p>. A closing tag adds a slash: </p>. Opening tag + content + closing tag = one element: <p>Hi</p>. To find a missing closing tag, check each opening tag has its own closing partner.

NameDateTime takenScore ___ / 40
  1. 1.🔍 One closing tag is missing. Which one?
    <p>My best friend</p>
    <strong>Cricket is fun.
    <h3>Hello, world!</h3>
    (a) </h1> (b) </h3> (c) </p> (d) </strong>
  2. 2.🔍 One closing tag is missing. Which one?
    <em>I love mangoes.
    <strong>Hello, world!</strong>
    <h1>My best friend</h1>
    (a) </strong> (b) </h1> (c) </em> (d) </u>
  3. 3.🔍 Which line is missing its closing tag?
    line 1: <i>I love mangoes.</i>
    line 2: <em>Good morning!
    line 3: <h2>Cricket is fun.</h2>
    (a) line 2 (b) line 3 (c) line 1
  4. 4.🔍 One closing tag is missing. Which one?
    <h1>Cricket is fun.</h1>
    <small>Rain today
    <h3>I love mangoes.</h3>
    (a) </p> (b) </h1> (c) </small> (d) </h3>
  5. 5.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  6. 6.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <\b> (d) <b/>
  7. 7.🔍 One closing tag is missing. Which one?
    <em>My pets
    <h2>I love mangoes.</h2>
    <h1>Hello, world!</h1>
    (a) </em> (b) </b> (c) </h1> (d) </h2>
  8. 8.🏷️ Which is the closing tag for <small>? (a) <\small> (b) </small> (c) <small/> (d) <small>
  9. 9.🔍 One closing tag is missing. Which one?
    <h2>Good morning!
    <h1>I love mangoes.</h1>
    <u>My best friend</u>
    (a) </h3> (b) </h1> (c) </u> (d) </h2>
  10. 10.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an attribute (d) an element name
  11. 11.🔍 One closing tag is missing. Which one?
    <h1>Our school trip
    <u>My pets</u>
    <em>Cricket is fun.</em>
    (a) </h1> (b) </i> (c) </u> (d) </em>
  12. 12.🔍 Which line is missing its closing tag?
    line 1: <i>Hello, world!</i>
    line 2: <p>The red kite
    line 3: <h2>I love mangoes.</h2>
    (a) line 2 (b) line 1 (c) line 3
  13. 13.🔍 One closing tag is missing. Which one?
    <h3>Hello, world!</h3>
    <b>Cricket is fun.
    <strong>I love mangoes.</strong>
    (a) </h3> (b) </p> (c) </strong> (d) </b>
  14. 14.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) attribute (c) address (d) editor
  15. 15.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  16. 16.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  17. 17.Which of these is an opening tag? (a) <body> (b) </title> (c) </li> (d) </p>
  18. 18.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  19. 19.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3> (c) <\h3> (d) <h3/>
  20. 20.🔍 One closing tag is missing. Which one?
    <h3>Our school trip</h3>
    <strong>The red kite</strong>
    <u>Rain today
    (a) </p> (b) </strong> (c) </u> (d) </h3>
  21. 21.🔍 One closing tag is missing. Which one?
    <u>Fun facts</u>
    <h3>Cricket is fun.
    <i>Rain today</i>
    (a) </h3> (b) </i> (c) </em> (d) </u>
  22. 22.🏷️ Which is the closing tag for <u>? (a) <u> (b) <u/> (c) </u> (d) <\u>
  23. 23.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) < (d) [
  24. 24.🔍 One closing tag is missing. Which one?
    <small>Fun facts</small>
    <u>Good morning!
    <h1>My pets</h1>
    (a) </u> (b) </small> (c) </i> (d) </h1>
  25. 25.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  26. 26.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  27. 27.🔍 One closing tag is missing. Which one?
    <b>Hello, world!
    <h1>Our school trip</h1>
    <i>Cricket is fun.</i>
    (a) </h1> (b) </b> (c) </i> (d) </u>
  28. 28.🏷️ Which is the closing tag for <em>? (a) <em/> (b) </em> (c) <em> (d) <\em>
  29. 29.Which of these is a closing tag? (a) <body> (b) </b> (c) <li> (d) <h1>
  30. 30.🔍 Which line is missing its closing tag?
    line 1: <em>Hello, world!
    line 2: <u>Good morning!</u>
    line 3: <b>Fun facts</b>
    (a) line 1 (b) line 3 (c) line 2
  31. 31.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) <h1/> (c) <h1> (d) </h1>
  32. 32.🔍 One closing tag is missing. Which one?
    <b>Fun facts
    <i>Good morning!</i>
    <strong>Hello, world!</strong>
    (a) </i> (b) </b> (c) </h3> (d) </strong>
  33. 33.🔍 One closing tag is missing. Which one?
    <strong>My pets</strong>
    <h3>I love mangoes.
    <h2>Fun facts</h2>
    (a) </h3> (b) </h2> (c) </strong> (d) </u>
  34. 34.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  35. 35.🔍 One closing tag is missing. Which one?
    <i>Good morning!
    <h2>Fun facts</h2>
    <em>I love mangoes.</em>
    (a) </h3> (b) </i> (c) </h2> (d) </em>
  36. 36.🔍 One closing tag is missing. Which one?
    <h2>Fun facts
    <b>My pets</b>
    <small>I love mangoes.</small>
    (a) </u> (b) </b> (c) </small> (d) </h2>
  37. 37.Which of these is an opening tag? (a) </b> (b) </p> (c) </h1> (d) <title>
  38. 38.🔍 One closing tag is missing. Which one?
    <em>Cricket is fun.</em>
    <strong>Good morning!</strong>
    <h2>Fun facts
    (a) </h2> (b) </strong> (c) </em> (d) </h1>
  39. 39.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  40. 40.🔍 One closing tag is missing. Which one?
    <h3>I love mangoes.
    <h1>The red kite</h1>
    <p>Rain today</p>
    (a) </h3> (b) </p> (c) </strong> (d) </h1>

Answer key

  1. </strong>
  2. </em>
  3. line 2
  4. </small>
  5. a closing tag
  6. </b>
  7. </em>
  8. </small>
  9. </h2>
  10. an attribute
  11. </h1>
  12. line 2
  13. </b>
  14. element
  15. Yes
  16. a closing tag
  17. <body>
  18. a closing tag
  19. </h3>
  20. </u>
  21. </h3>
  22. </u>
  23. <
  24. </u>
  25. an opening tag
  26. an opening tag
  27. </b>
  28. </em>
  29. </b>
  30. line 1
  31. </h1>
  32. </b>
  33. </h3>
  34. an opening tag
  35. </i>
  36. </h2>
  37. <title>
  38. </h2>
  39. a closing tag
  40. </h3>

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