Webmaster Forums - Website and SEO Help

Web Development and Design => Website Design and HTML => Topic started by: rakkhi sharma on January 31, 2011, 02:12:08 AM

Title: difference between  <br> and <br /> tag?
Post by: rakkhi sharma on January 31, 2011, 02:12:08 AM
hi can anyone tell me the difference between  <br> and <br /> tag?
Title: Re: difference between  <br> and <br /> tag?
Post by: Webhelpforums on January 31, 2011, 06:44:43 AM
Simplified:

<tag /> (XHTML)
same as
<tag></tag> (XHTML/HTML)
same as
<tag> (HTML)
Title: Re: difference between  <br> and <br /> tag?
Post by: WebDeveloper on March 14, 2011, 04:46:26 AM
Yes.. in HTML there is no need to close some tags like <br>, <hr> and <img> but in XTML we have to close all the tags so you can write <br> in HTML and <br /> in XTML. Using XHTML is a good practise.
Title: Re: difference between  <br> and <br /> tag?
Post by: ritakriti on March 24, 2011, 05:30:24 AM
Yes this is true..if it is non closing tag then it is an html else XHTML.
Title: Re: difference between  <br> and <br /> tag?
Post by: jony123 on April 13, 2011, 01:10:44 AM
If u want to go new line you use <br> tag in HTML.
There is no end tag of <br> tag in HTML.
But in XHTML the <br> tag must be properly closed, like <br />.

Title: Re: difference between  <br> and <br /> tag?
Post by: sophia123 on April 19, 2011, 10:40:42 AM
For HTML web designer <br >  tag is useful for new line. If you use XHTML then you must close <br > tag by  <br /> tag.
Title: Re: difference between  <br> and <br /> tag?
Post by: John23 on April 25, 2011, 04:50:07 AM
Quote from: Webhelpforums on January 31, 2011, 06:44:43 AM
Simplified:

<tag /> (XHTML)
same as
<tag></tag> (XHTML/HTML)
same as
<tag> (HTML)

I think this is the best answer. Moderator has explained really good.
Title: Re: difference between  <br> and <br /> tag?
Post by: Delois on October 31, 2011, 08:28:09 AM
The difference is that <br> tag is used in the HTML while <br /> tag is used in XHTML. HTML gives flexibility for not closing the tag but in the XHTML it is compulsory to close the tag.
Title: Re: difference between  <br> and <br /> tag?
Post by: star34 on April 18, 2012, 03:49:20 AM
What about </br> tag?
Title: Re: difference between  <br> and <br /> tag?
Post by: johnanne on August 01, 2012, 02:43:44 PM
This both tag are HTML tag and it is in pair tag. With this tag you can break line and start in new line. <BR> is the starting tag of HTML and than you have to complate this tag with use of <BR/> tag. But HTML provide facility that did not close this tag.
Title: Re: difference between  <br> and <br /> tag?
Post by: siyajoshi on August 02, 2012, 01:42:29 AM
Hello...
<br> is  used in HTML, the <br/> is used in XHTML. They are not compatible (you must use the first in HTML only, and the second in XHTML only).
Thnx..:)