Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vs

Status
Not open for further replies.

audiopro

Programmer
Joined
Apr 1, 2004
Messages
3,165
Location
GB
I am trying my best to keep up with best practice but keep hitting contradictions.
Many sites say
Use <br /> rather than <br>
but when you validate, it throws a wobbly on every instance of <br />

So what is the most acceptable way?

Keith
 
Hi

unknown said:
Use <br /> rather than <br>
The author of that sentence should have been mentioned that
[ul]
[li][tt]<br />[/tt] is XHTML[/li]
[li][tt]<br>[/tt] is HTML[/li]
[/ul]
So use the one matching your [tt]DOCTYPE[/tt] declaration.

Feherke.
 
To what DOCTYPE are you validating?
Both strict and loose depending on the particular site.
I can't see why it should make a difference except that the whole thing is controlled by academics, so chaos has to result.
We have HTML, why do we need different types of HTML?


Keith
 
I would have thought that we could have a standard that applied to every web page on the 'Interweb'. I assume that the academics shroud it in mystery so that people with common sense are lead to believe that academics rule the world.

The academics may well do, but I wish the Victorian pioneers were in charge, at least we would have some order of sense on the web.

OK - Ranty over - time to do some work

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top