W3C home > Mailing lists > Public > www-validator@w3.org > February 2013

RE: Web address in link causes errors

From: Nigel Brown <nigel.brown@live.com>
Date: Mon, 11 Feb 2013 15:24:15 +0000
Message-ID: <BLU0-SMTP3522D0EE56DCCE4B74B5A26820A0@phx.gbl>
To: "'David Dorward'" <david@dorward.me.uk>
CC: <www-validator@w3.org>

Thank you so much. Validation problem solved. I will read simple
instructions more carefully in future.

Much appreciated,


-----Original Message-----
From: David Dorward [mailto:dorward@gmail.com] On Behalf Of David Dorward
Sent: 11 February 2013 2:25 PM
To: Nigel Brown
Cc: www-validator@w3.org
Subject: Re: Web address in link causes errors (that are not of my making!)

On 9 Feb 2013, at 21:02, Nigel Brown <nigel.brown@live.com> wrote:

> I have a line of code in the Sitemap on my web site at
http://www.nigelbrown..me.uk/my-sitemap.htm that gives rise to 2 validation
errors and 3 warnings. It is a link to a website (the Guestbook). But these
"errors" and "warnings" are not problems with my code; it is because the
validation does not like the Guestbook web address.

No, it isn't. It is because you are writing the address as if it was in a
text document instead of an HTML document.

> How can I help this?

Follow the instructions provided under the error message.

To quote them for you:

The most common cause of this error is unencoded ampersands in URLs as
described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;).
If you want to use a literal ampersand in your document you must encode it
as "&amp;" (even inside URLs!). 

David Dorward
Received on Monday, 11 February 2013 15:22:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:07 UTC