W3C home > Mailing lists > Public > www-validator@w3.org > June 2004

Re: validator broke with <meta .. /> and <link .. /> but not with <img .. /> or <br />

From: David Dorward <david@dorward.me.uk>
Date: Thu, 3 Jun 2004 09:21:07 +0100
Message-Id: <F683D0B2-B536-11D8-9A86-000A957E4F00@dorward.me.uk>
Cc: www-validator@w3.org
To: Horváth Róbert <rs@programozo.hu>


On 3 Jun 2004, at 00:44, Horváth Róbert wrote:
> dear validator list :)
>
> as in the w3schools examples ( 
> http://www.w3schools.com/tags/tag_meta.asp ) i wanted to make my html 
> more universal with trailing slashes.

Trailing slashes do not make HTML more universal. In HTML "<foo />" is 
roughly the same as "<foo>>". Depending on where you put them, they 
either tell your HTML document to display ">" characters scattered 
about, or they make it invalid (in the case of telling it to display a 
 > somewhere where it is not allowed (like inside <head>)).

In XHTML they mean something rather different, and given the current 
level of support for XHTML, switching to that language hardly makes a 
document more "universal" - Internet Explorer doesn't support it 
(except if you pretend its not XHTML but broken HTML, making it 
pointless using XHTML in the first place for the majority)!

--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
Received on Thursday, 3 June 2004 04:22:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT