|
Posted by Jim Higson on 05/03/06 20:57
EN wrote:
> So,
>
> I have Visual Studio 2005 and did some HTML makeup, I hired a designer to
> do the graphics, and after that, I check my site on conformance.
>
> 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.
the /> closing is for CHTML. Maybe you're using HTML?
> instead it wants a <meta> tag to be closed by </meta> and not by /> (empty
> tag)
>
> I must say, Visual Studio is consequent, it votes for closing through />
> (both the meta as the link tag).
Suprising given that Microsoft's browser doesn't support XHTML.
> So guys and girls, is W3C kidding or what? If I stick to conformance, I
> get a very inconsequent non-xhtml of the contents of the <head> tag... but
> W3C validates it as OK.
If you want the document to be HTML, close using </foo>
If you want the document to be XHTML, you can use either.
If you don't want your code mangled, use a different editor.
--
Jim
[Back to original message]
|