|
Posted by J.O. Aho on 03/03/07 18:22
Mike Barnard wrote:
> I have been examining the code of a site and often, not always, there
> is a slash before the end of a statement.
> <br class="clear" />
> Why is it needed, if it is needed, and what is it good for? I
> understand </p> </h1> etc but why a /> alone?
As mbstevens already pointed out, it's xhtml, just keep in mind to not use
that in html, so if you copy something from an xhtml source to use on your
html page, remove those '/' in the end of the tags, or else it can be a bit
"random" what may happen in a browser.
--
//Aho
[Back to original message]
|