W3C home > Mailing lists > Public > www-validator@w3.org > September 2005

Re: HTML end tags for empty elements

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 10 Sep 2005 21:49:36 +1000
Message-ID: <4322C850.7000907@lachy.id.au>
To: Alun Jones <a.jones@hccnet.nl>
CC: "www-validator@w3.org" <www-validator@w3.org>

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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:53 UTC