Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 01-01-2012, 10:48 PM   #1
jamesranatte
Registered User
 
Join Date: Nov 2011
Location: India
Posts: 277
Question 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?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
jamesranatte is offline   Reply With Quote

Old 01-22-2012, 11:37 PM   #2
madhuriarora
Registered User
 
Join Date: Dec 2011
Posts: 222
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 .
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
madhuriarora is offline   Reply With Quote
Old 10-02-2012, 02:55 AM   #3
bryanbell
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,

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
bryanbell is offline   Reply With Quote
Old 10-25-2012, 10:08 AM   #4
henryc10
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)
henryc10 is offline   Reply With Quote
Old 12-05-2012, 06:39 AM   #5
aegisisc
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>
aegisisc is offline   Reply With Quote
Old 12-19-2012, 04:50 AM   #6
milina788
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
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
milina788 is offline   Reply With Quote
Old 01-23-2013, 06:03 AM   #7
rsewak
Registered User
 
Join Date: Jan 2013
Posts: 99
Hi Guys Thanks for sharing Good HTML Tips
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
rsewak is offline   Reply With Quote
Old 04-19-2013, 04:58 AM   #8
vivekaryan
Registered User
 
Join Date: Apr 2013
Posts: 58
yes.. i agree with you
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
vivekaryan is offline   Reply With Quote
Old 04-23-2013, 12:12 AM   #9
RohanJaiswal
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.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
RohanJaiswal is offline   Reply With Quote
Old 04-26-2013, 08:52 AM   #10
mikerock
Registered User
 
Join Date: Jan 2013
Posts: 23
Container tag need to be closed while html empty tag does not require close tag

container tag
<html>
...............
..................
..................
</html>

Empty tag

<HR>
<BR>
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
mikerock is offline   Reply With Quote
Old 03-17-2014, 01:56 AM   #11
alligatortek001
Registered User
 
Join Date: Nov 2013
Posts: 94
Quote:
Originally Posted by RohanJaiswal View Post
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

<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..
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
alligatortek001 is offline   Reply With Quote
Old 01-11-2018, 01:13 AM   #12
pastakangen
Registered User
 
Join Date: Jan 2018
Posts: 159
so empty tag is a bad coding?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pastakangen is offline   Reply With Quote
Old 01-15-2018, 01:16 AM   #13
aesthetiqclinic
Registered User
 
Join Date: Jan 2018
Posts: 38
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.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
aesthetiqclinic is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:48 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.