Tags are instructions that are embedded directly into the text of a HTML document. Each HTML tag describes that the browser should do something instead of simply displaying the text. In HTML, the tags begin with (<) and end with (>)
Html tags:HTML tags can be of two types. They are
- Paired Tags
- Unpaired Tags
A tag is said to be a paired tag if the text is placed between a tag and its companion tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as Closing Tag.
Example of Paired Tag:
These are all paired tag, these have starting tag < “tag_name ” > and closing tag </ “tag_name”>.
Difference between paired Tags and unpaired tags:Paired tags are those tags which have opening and closing tags.
- < body></body>
unpaired tags are those tags which don't have a closing tag.
- < BR >