Reply to Is this valid code?

Your name:

Reply:


Posted by Jim Higson on 06/11/06 11:10

I just noticed that not separating attributes by spaces is picked up by some
validators/checkers and not others.

For example, this code:

<a title="a link"href="http://example.com">this is a link</a>

Flags no errors with the W3C checker, but the one at
http://www.htmlvalidator.com/lite/ says "A quoted string (like an attribute
value) cannot be immediately followed by text. It must be followed by a
space or by the end of the tag. Is there a missing space character?"

This is in an XHTML document (although I'd be interested to see what the
rules are for HTML 4 as well). Is anyone familiar enough with the SGML
specification of XML to say if the example I gave is valid XML?

No real point to this, just wondering which validator gets it right.

--
Jim

[Back to original 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

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