In HTML, We are writing the code in tags format and all the tags are predefine that why html is markup language.
Tag: Tag, The text which is surrounding by angular bracket is known as tags.
There are two type of tag:
- Paired tag
- Unpaired tag/ Self-Closing tag
Paired tag: In paired tag there is both tag, Opening tab and Closing tag is known as paired tags.
Syntax: <tag> </tag>
Example of paired tag:
<html> </html>
<body> </body>
<head> </head>
<div> </div>
<p> </p>
<a> </a>
… etc.
Note:- All the tag are predefine its means we can’t create, change and destroy the tag, Only we can use according to out requirement.