Forum Moderators: phranque
<tag>data</tag>
and the shortand method, which can only be used when there is no data:
<tag />
Now, because there are a number of HTML elements that never have data (such as <br>, <hr> for example), it is common practice within XHTML to close off these tags using the shorthand method, and hense they become <br /> and <hr />. If this shorthand method were not an option then for an XHTML document to be valid XML it would be necessary to close the tags, and that would mean using <br></br>....
the first on is xhtml ignore it it suxNot exactly the most informative post in the pile, is it?
And not the most clear post either. I actually had to read it a couple times to get the gist of it :)
In all seriousness, I've found webmasterworld to consistently have a high signal to noise ratio, so I don't get too upset with the occasional junk post.
Back to XHTML and whether or not it "sux", you can do some web searches and find Ian Hickson's piece "Sending XHTML as text/html Considered Harmful" and responses to Ian's article to get a good idea about the differences between HTML and XHTML and advantages/disadvantages of both.