Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   HTML / DHTML (http://siteownersforums.com/forumdisplay.php?f=7)
-   -   Difference between container tag and empty tag? (http://siteownersforums.com/showthread.php?t=53580)

jamesranatte 01-01-2012 10:48 PM

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:

madhuriarora 01-22-2012 11:37 PM

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 .

bryanbell 10-02-2012 01:55 AM

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.

henryc10 10-25-2012 09:08 AM

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)

aegisisc 12-05-2012 06:39 AM

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





milina788 12-19-2012 04:50 AM

Both are HTML tags and there is simple difference between them, that a container tag like , needs to be closed by while empty tags like
,
doesn’t need to be closed.

rsewak 01-23-2013 06:03 AM

Hi Guys Thanks for sharing Good HTML Tips

vivekaryan 04-19-2013 03:58 AM

yes.. i agree with you

RohanJaiswal 04-22-2013 11:12 PM

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.

mikerock 04-26-2013 07:52 AM

Container tag need to be closed while html empty tag does not require close tag

container tag

...............
..................
..................


Empty tag





alligatortek001 03-17-2014 12:56 AM

Quote:

Originally Posted by RohanJaiswal (Post 260015)
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.

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





There is no ending tag required..

pastakangen 01-11-2018 01:13 AM

so empty tag is a bad coding?

aesthetiqclinic 01-15-2018 01:16 AM

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.

TopXListing 02-08-2018 03:30 AM

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

alvin_hoffman 10-03-2019 07:24 AM

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.