HTML is a Mark language and to markup the contents on web page we use various commands called Tags. Tags are instructions that are embedded directly into the text of a HTML document. Each HTML tag specifies some action that the browser should in displaying the text on web page. HTML tag begins with opening tag and end with closing tag.
There are two types of HTML tag:
- Paired Tag
- Unpaired Tag
Paired Tag: It is also called container tag. A tag is said to be a paired tag if the text is placed between a tag and its companion tag.
Syntax:
<tag_name> content </tagname>
Example:
<html> … </html>
Unpaired Tag: It is also called singular or stand-alone tag. An unpaired tag does not have a companion tag.
Syntax:
<tag_name>
Example:
<br> , <hr>