Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 03-10-2011, 07:23 AM   #1
New Member
 
Join Date: Mar 2011
Posts: 2
Default difference between <br> and </ br> tag

what is the difference between <br> and </ br> tag?

To make standards compliant HTML, every tag that is opened should be closed. Since the br tag does not have any data between its opening and closing tags then the closure should be indicated at the end of the tag as shown above.

Any other points?
__________________
Abercrombie fitch, the biggest apparels retailer, whose product include abercrombie outlet, abercrombie hoodies, abercrombie jackets and other abercrombie cheap accessories.
wulaishiwo4 is offline   Reply With Quote


Old 03-10-2011, 08:23 AM   #2
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,133
Default

the difference is one exists and one doesnt.
there is no</ br> tag you might be confusing it with <br /> which is xhtml
Phreaddee is offline   Reply With Quote
Old 03-10-2011, 10:21 AM   #3
Mug
Bronze Member
 
Join Date: Dec 2010
Posts: 62
Default

Syntax difference between xhtml and html. Phreaddee is right though.

<br> for html
<br/> for xhtml

html 5 allows the use of either.
__________________
Mug
Web Design Chester | Check out our latest post on the Job Centre
Mug is offline   Reply With Quote
Old 03-10-2011, 06:34 PM   #4
Gold Member
 
Join Date: Feb 2011
Location: Australia
Posts: 369
Default

I think it's a spam post. ;-)

Last edited by DHDdirect; 03-10-2011 at 06:37 PM.
DHDdirect is offline   Reply With Quote
Old 03-13-2011, 07:47 AM   #5
Silver Member
 
Join Date: Jan 2011
Posts: 214
Default

To make standards compliant HTML, every tag that is opened should be closed. Since the br tag does not have any data between its opening and closing tags then the closure should be indicated at the end of the tag as shown above.
jumpingspider is offline   Reply With Quote


Old 03-16-2011, 04:05 PM   #6
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

Quote:
Originally Posted by Phreaddee View Post
the difference is one exists and one doesnt.
there is no</ br> tag you might be confusing it with <br /> which is xhtml
Exactly!
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:45 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.