What is a Tags in HTML

Tag is an HTML command that is used to shows the content what you want to display in part of the Web page. HTML tags are element names bound by angle brackets that always opens with a less than symbol < sign and closes with a greater than symbol >.

HTML tags can be of two types:

  1. Paired Tags
  2. Singular Tags

1. Paired Tags : Paired Tags : A tag is said to be a paired tag if the text is comes between a tag and its companion tag. In paired tags, the first tag is called as Opening Tag and the second tag is called to as Closing Tag.

2. Singular Tags : Paired Tags : The second type of tag is the singular tag, which is also known as a stand-alone tag or empty tag. The stand-alone tag does not have companion tag or closing tag.