HTML tags are keywords or names that are surrounded by angle brackets "<>"
There are two types of HTML tags.
Pair tags are the combination of both open tag "<tag>" and closing tag "</tag>".
Close tag is open tag followed by forward slash "/" before open tag name.
<Tagname></Tagname>
Tag names are not case sensitive it means you can use either upper case tag names "<TAGNAME></TAGNAME>" or lower case tag names "<tagname></tagname>" but it's better to use lowercase names.
There are so many pair tags in html but <b></b> , <i></i> and <p></p> are the common examples of pair tags.
Unpair tags are the single open tags "<tag>".
Unpair tag is an open tag followed by single space and forward slash "/" after open tag name.
<Tagname />
Tag names are not case sensitive it means you can use either upper case tag names "<TAGNAME />" or lower case tag names "<tagname />" but it's better to use lowercase names.
The common examples of unpair tags are <hr /> <br /> etc.
Pair tags are called non empty elements and unpair tags are called empty elements and pair tag and unpair tags both are non case sensitive.
HTML Elements are combination of open tag "<tag>", content and close tag"</tag>".
<Tagname>Content</Tagname>
There are hundereds of html elements like <img />, <em></em>, <p></p> and many more.
here "<img />" is called empty element and "<em></em>", "<p></p>" are called non empty elements.
Don't worry if you can't understand "<img />", "<em></em>" elements at this time we will explain them in detail in latter chapters.
Here is difference between tag and element
Open notepad or any other text editor, follow the following points.
<br />element for next or new line if neccessary
save file with name task.html or task.htm and then open it using any browser and see results.