![]() |
#1 |
Registered User
Join Date: Nov 2011
Location: India
Posts: 277
|
![]()
Hello optimizers I want to know that what is the difference between container tag and empty tag in HTML?
![]()
__________________
Gps Tracker| Toolbar Editor | Website Design (Las Vegas) | Affordable Website Development | Resume Puerto Rico |
![]() |
![]() |
![]() |
#2 |
Registered User
Join Date: Dec 2011
Posts: 217
|
container tags contain the heading and paragraph tags and the have closing tags like<h1></h1>
<p></p> Empty tages have no closing tages they are empty tages like<BR> break a line <hr>horizontal line . |
![]() |
![]() |
![]() |
#3 |
Registered User
Join Date: Dec 2010
Location: Florida
Posts: 168
|
HTML tags that need to be closed with </> command is called container tag. For example <B> and </B> 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 <br>, <hr> are the empty tags they don�t need to be closed with </ > command.
__________________
Strategic Web Solutions by SPINX INC. - A Web Design Company in Tampa, http://tampa-webdesign.spinxwebdesignflorida.com/ |
![]() |
![]() |
![]() |
#4 |
Registered User
Join Date: Oct 2012
Posts: 33
|
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 <html> is the opening tag </html> is the closing tag <a href=""> is the opening tag </a> is the closing tag (closing is required) EMPTY TAG <img src=""> <br> (no closing required) |
![]() |
![]() |
![]() |
#5 |
Registered User
Join Date: May 2012
Posts: 36
|
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 <html> is the opening tag </html> is the closing tag <a href=""> is the opening tag </a> is the closing tag (closing is required) EMPTY TAG <img src=""> <br> |
![]() |
![]() |
![]() |
#6 |
Registered User
Join Date: Jul 2012
Posts: 34
|
Both are HTML tags and there is simple difference between them, that a container tag like <a href= ""></a>, <b></b> needs to be closed by </> while empty tags like <br>, <hr> doesn’t need to be closed.
__________________
Hire a professional Website Design Company Hamilton |
![]() |
![]() |
![]() |
#7 |
Registered User
Join Date: Jan 2013
Posts: 99
|
Hi Guys Thanks for sharing Good HTML Tips
__________________
Camping in Dhanaulti, Camping in Kanatal, Kanatal Camp, Camps in Kanatal |
![]() |
![]() |
![]() |
#8 |
Registered User
Join Date: Apr 2013
Posts: 58
|
yes.. i agree with you
|
![]() |
![]() |
![]() |
#9 |
Registered User
Join Date: Apr 2013
Posts: 8
|
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.
|
![]() |
![]() |
![]() |
#10 |
Registered User
Join Date: Jan 2013
Posts: 21
|
Container tag need to be closed while html empty tag does not require close tag
container tag <html> ............... .................. .................. </html> Empty tag <HR> <BR> |
![]() |
![]() |
![]() |
#11 | |
Registered User
Join Date: Nov 2013
Posts: 92
|
Quote:
for example: CONTAINER TAG <html> is the opening tag </html> is the closing tag <a href=""> is the opening tag </a> is the closing tag (closing is required) EMPTY TAG <img src=""> <br> There is no ending tag required.. |
|
![]() |
![]() |
![]() |
#12 |
Registered User
Join Date: Jan 2018
Posts: 96
|
so empty tag is a bad coding?
|
![]() |
![]() |
![]() |
#13 |
Registered User
Join Date: Jan 2018
Posts: 230
|
difference is quiet simple.
container tag are those that contain any thing between opening and closing tags e.g <body> and </body> all the data and other tags are enclosed between these two tags. empty tags are those which have just opening tags e.g <img src="image name"> <br> these are empty tags.
__________________
libra birthstone color | birthstones | sagittarius birthstone color | aries birthstone meaning | aries birthstone color |
![]() |
![]() |
![]() |
#14 |
Registered User
Join Date: Feb 2018
Posts: 3
|
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. <html> is the opening tag </html> is the closing tag 2. <head> is the opening tag </head> is the closing tag Some of the empty tags are: 1. <br> tag 2. <img> tag |
![]() |
![]() |
![]() |
#15 |
Registered User
Join Date: Oct 2015
Posts: 383
|
The text in between is "contained" by the tag. Empty tags are the horizontal rule (<hr>) and the break tags (<br>). 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.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|