There are mainly 2 types of Tags in HTML Language. These are referred below.
- Container (Paired Tag) :
A tag is said to be container tag if it has companion tag means which include an opening and a closing tag.
Example :- <B> (opening tag)
</B> (Closing Tag)
Opening tag turns the effect 'ON' where as closing tag turns the effect "OFF".
Examples :- <HTML>, <BODY>, <FONTS>, etc.
- Empty tag (Singular) :
A tag is said to be empty if it has only opening tag i.e. having no companion tag.
Example :- <BR>, <HR>, <IMG>, etc.
Note :-
- Closing tag is preceded by forward slash (/).
- Tags are not case sensitive, means they could be typed in uppercase or lowercase or both.
- Tags can be nested means a container tag but the tag started later is ended first.
That's all for now, see you soon on the next tutorial. Till then, be connected to us to our official telegram channel @technitesh_com
0 Comments: