NameSilo

Just a random, non-important question

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

Rudy

Established Member
Impact
16
I've been wondering recently, what the difference is between <br> and <br />?

It seems that they both do the exact same thing. Perhaps 1 is XHTML compliant, and the older one (<br>) is not?

I dunno. This is really random, and not important, but I've been curious - also to know if there are any advantages to one over the other.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I don't know the answer, but I was asking the same question to myself.
 
0
Close
Actually, I noticed that each of them gives a slightly different spacing. Perhaps it's just me though.
 
0
Close
XHTML requires every tag to be closed. Some HTML tags don't have a close tag, so in XHTML a slash (/) is added to <br>, to make <br />.

They both do exactly the same thing.
 
0
Close
Thanks for telling .. really helpful
 
0
Close
ok... that cleared out my doubt
 
0
Close
Me too. Thanks for that - I've always wondered about things like that before.
 
0
Close
yah
as rowan mentioned, it's the XHTML solution 2 close tags
if your pages have a XHTML declaration u need to redit all the html tags and close it
 
0
Close
oh i see so <BR /> is only useful for xhtml thanks!
 
0
Close
Red Eyes Arena said:
oh i see so <BR /> is only useful for xhtml thanks!

And it just looks sweet :)
 
0
Close
Its the way they space HTML is wierd.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

The forum home page in the new NamePros Dark style
NamePros Dark has a new look
The dark style of the forum is now darker. The page is close to black, with a slight blue tint. New style: NamePros Dim Do you...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back