Difference between container tag and empty tag?
Hello optimizers I want to know that what is the difference between container tag and empty tag in HTML?:confused:
|
container tags contain the heading and paragraph tags and the have closing tags like
Empty tages have no closing tages they are empty tages like break a line horizontal line . |
HTML tags that need to be closed with > command is called container tag. For example and is a container tag and also described as a nested tag. And the tags that don’t need to be closed with > command is called an empty tag. For example
, are the empty tags they don’t need to be closed with > command. |
the difference between a container tag and an empty tag is quite simple. a conatiner tag is the one which has to be closed and an empty tag doesnt need to be closed.
for example: CONTAINER TAG is the opening tag is the closing tag is the opening tag is the closing tag (closing is required) EMPTY TAG (no closing required) |
he difference between a container tag and an empty tag is quite simple. a conatiner tag is the one which has to be closed and an empty tag doesnt need to be closed.
for example: CONTAINER TAG is the opening tag is the closing tag is the opening tag is the closing tag (closing is required) EMPTY TAG |
|
Hi Guys Thanks for sharing Good HTML Tips
|
yes.. i agree with you
|
There is simple diference between container tag and empty tag, in container tag, there is opening tag and closing tag but in empty tag, there is only opening tag.
|
Container tag need to be closed while html empty tag does not require close tag
container tag ............... .................. .................. Empty tag |
Quote:
for example: CONTAINER TAG is the opening tag is the closing tag is the opening tag is the closing tag (closing is required) EMPTY TAG There is no ending tag required.. |
so empty tag is a bad coding?
|
difference is quiet simple.
container tag are those that contain any thing between opening and closing tags e.g and all the data and other tags are enclosed between these two tags. empty tags are those which have just opening tags e.g these are empty tags. |
The main difference between container tag and the empty tag is that container tags have both opening and closing tag while the empty tags have only opening tags. There is no need of closing tags in empty tags.
Some of the container tags are: 1. is the opening tag is the closing tag 2. is the opening tag is the closing tag Some of the empty tags are: 1. tag 2. tag |
The text in between is "contained" by the tag. Empty tags are the horizontal rule (
) and the break tags ( ). Most of the data a container tag contains is between the opening and closing tag (including other "nested" tags.) Whereas all of the data represented by an empty tag is contained in the tags attributes. |
All times are GMT -7. The time now is 04:15 PM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.