You are here: Re: W3C complience checker and conformance « HTML « IT news, forums, messages
Re: W3C complience checker and conformance

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация