HTML Worksheet: Tags and Elements
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.🔍 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.🔍 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.🔍 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.🔍 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.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 6.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <\b> (d) <b/>
-
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.🏷️ Which is the closing tag for <small>? (a) <\small> (b) </small> (c) <small/> (d) <small>
-
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.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an attribute (d) an element name
-
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.🔍 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.🔍 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.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) attribute (c) address (d) editor
- 15.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 16.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 17.Which of these is an opening tag? (a) <body> (b) </title> (c) </li> (d) </p>
- 18.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 19.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3> (c) <\h3> (d) <h3/>
-
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.🔍 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.🏷️ Which is the closing tag for <u>? (a) <u> (b) <u/> (c) </u> (d) <\u>
- 23.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) < (d) [
-
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.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 26.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
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.🏷️ Which is the closing tag for <em>? (a) <em/> (b) </em> (c) <em> (d) <\em>
- 29.Which of these is a closing tag? (a) <body> (b) </b> (c) <li> (d) <h1>
-
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.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) <h1/> (c) <h1> (d) </h1>
-
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.🔍 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.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
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.🔍 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.Which of these is an opening tag? (a) </b> (b) </p> (c) </h1> (d) <title>
-
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.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
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
- </strong>
- </em>
- line 2
- </small>
- a closing tag
- </b>
- </em>
- </small>
- </h2>
- an attribute
- </h1>
- line 2
- </b>
- element
- Yes
- a closing tag
- <body>
- a closing tag
- </h3>
- </u>
- </h3>
- </u>
- <
- </u>
- an opening tag
- an opening tag
- </b>
- </em>
- </b>
- line 1
- </h1>
- </b>
- </h3>
- an opening tag
- </i>
- </h2>
- <title>
- </h2>
- a closing tag
- </h3>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids