Page 49 - TCS ICT Book 7
P. 49
The City School 2021-2022
HTML Tags
There are two types of HTML tags
Building a Website
Types of
HTML tags
Paired Unpaired
HTML tags HTML tags
< > < /> < >
Paired HTML Tags
A paired tag consists of two tags, the first one is called an opening tag and the second
one is called closing tag. These tags contain the text in between at which the effect of
that tag will be applied. For example: <b>ABC</b>
Here <b> is the opening tag, </b> is the closing tag and ABC the text in between which
will result as ABC on the browser screen. Some more examples of paired HTML tags
are given below:
• <li> </li> List Items
The <li> tag defines a list item. The <li> tag is used inside ordered lists(<ol>), unordered
lists (<ul>).
Sample Code Output
<ol> 1. Coffee
<li>Coffee</li> 2. Tea
<li>Tea</li> 3. Milk
<li>Milk</li> 4. Water
<li>Water</li> 5. Juice
<li>Juice</li> 6. Shake
<li>Shake</li>
</ol>
49

