Dynadot โ€” .com Transfer

Just a random, non-important question

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
I don't know the answer, but I was asking the same question to myself.
 
0
•••
Actually, I noticed that each of them gives a slightly different spacing. Perhaps it's just me though.
 
0
•••
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
•••
Thanks for telling .. really helpful
 
0
•••
ok... that cleared out my doubt
 
0
•••
Me too. Thanks for that - I've always wondered about things like that before.
 
0
•••
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
•••
oh i see so <BR /> is only useful for xhtml thanks!
 
0
•••
Red Eyes Arena said:
oh i see so <BR /> is only useful for xhtml thanks!

And it just looks sweet :)
 
0
•••
Its the way they space HTML is wierd.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back