Posted by David Dorward on 05/03/06 20:58
EN wrote:
> Guess what? Visual Studio sais: everything OK, but W3C says that
> <link> tags should not be closed by /> (empty tag) nor by </link> so a
> <link
> [tags]> should stay as it is.
>
> instead it wants a <meta> tag to be closed by </meta> and not by /> (empty
> tag)
> So guys and girls, is W3C kidding or what?
Depends if you are working in XHTML or HTML. In HTML <link> and <meta> are
correct, while in XHTML <link />, <link></link> and <link/> (ditto meta)
are correct - although only one is allowed under Appendix C guidelines
(although XHTML as text/html is silly anyway - as has been discussed many
times before in this newsgroup).
I've never see the W3C Markup Validator get this wrong though.
A URL would be helpful.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|