Reply to Re: Is this valid code?

Your name:

Reply:


Posted by Brian Cryer on 06/12/06 06:06

"Jim Higson" <jh@333.org> wrote in message
news:JKOdnZ2s48q8ZxbZnZ2dnUVZ8sidnZ2d@eclipse.net.uk...
> 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.

I don't know whether it is or might be right (David Dorward's post seems to
address that point reasonably well), but I would expect that some bots would
fail to parse it correctly. So it may have an adverse effect on search
engine rankings.
--
Brian Cryer
www.cryer.co.uk/brian

[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

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