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

Notices


Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 3.00 average. 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: 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 .
__________________

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, 01: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, 09: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, 03: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-22-2013, 11:12 PM   #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, 07:52 AM   #10
mikerock
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>
__________________

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, 12:56 AM   #11
alligatortek001
Registered User
 
Join Date: Nov 2013
Posts: 92
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: 96
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: 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.
__________________

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.
aesthetiqclinic is offline   Reply With Quote
Old 02-08-2018, 03:30 AM   #14
TopXListing
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
TopXListing is offline   Reply With Quote
Old 10-03-2019, 07:24 AM   #15
alvin_hoffman
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.
__________________

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.
alvin_hoffman 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 02:05 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.