Re: XML style closing syntax

On Thu, Sep 25, 2003 at 01:18:36PM +0100, Jim Barter wrote:
> <img src="somegraphic.gif" alt="" />
> 
> The above code validates as HTML 4.01 transitional - even though the img tag
> has XML style closing syntax

Yes, this is correct... however it doesn't mean the same thing in HTML
and it does in XHTML. In HTML it is shorthand for:

<img src="somegraphic.gif" alt="">>

(Note the extra ">" - a browser that implements the spec correctly will
render that as a visible &gt; in the document.)

-- 
David Dorward                                      http://dorward.me.uk

Received on Thursday, 25 September 2003 12:38:01 UTC