Re: HTML end tags for empty elements

Alun Jones wrote:
> In HTML the element input and img are not flagged as errors when end 
> tags are added:
> <input type="text" />
> should be
> <input type="text">
> No errors or warnings are given by the validator.
> ...
> Should not all of these EMPTY elements be flagged as errors when end 
> tag/slash are added, for all HTML Doctypes?

No, that syntax in HTML has a different meaning from that in XML.
http://www.cs.tut.fi/~jkorpela/html/empty.html

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Saturday, 10 September 2005 11:49:49 UTC