Re: XHTML Problem With Netscape 6

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Tue, 26 Feb 2002 21:31:40 +0000
 To:  "HWG" <hwg-techniques(at)mail.hwg.org>
 In-Reply-To:  mediaone
  todo: View Thread, Original
At 15:23 26/02/02 -0500, cbirds(at)earthlink.net wrote:
<snip/>
>Why do you have slashes before the closing bracket?( />)

XHTML (and XML) requires all open tags to be closed. Empty tags can be 
closed in the normal way, like this:

<.tag></tag>

You can also close them in a shorthand way, which is more backwardly 
compatible:

<.tag />

The space isn't necessary, but it helps backward compatiblity.

Andrew

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA