W3C home > Mailing lists > Public > www-validator@w3.org > July 2002

Re: url validation

From: Liam Quinn <liam@htmlhelp.com>
Date: Sat, 6 Jul 2002 19:56:20 -0400 (EDT)
To: Gregor Wolbring <gwolbrin@ucalgary.ca>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0207061942480.14428-100000@localhost.localdomain>

On Sat, 6 Jul 2002, Gregor Wolbring wrote:

> it's not that simple unfortunately. Every url of an external link like
> an newspaper article shows up with a different error message. But even
> if I know how to correct it. I tried it with the one who has the '&' if
> I change it my browser does not recognize the url anymore.

Then you've made a mistake, or perhaps you tested it incorrectly.

When writing anything in HTML, "&" needs to be replaced with "&amp;".  The
browser interprets "&amp;" to mean a literal "&".

You're not changing the URL when you replace "&" with "&amp;".  You're
just writing it according to HTML's syntax rules.  If you were typing the
URL in your browser's location bar, you wouldn't use "&amp;".

> e.g. the Information society, eEurope 2002: accessibility of public web
> sites and their content for disabled people NEW
> has the url
> http://wwwdb.europarl.eu.int/oeil/oeil_ViewDNL.ProcedureView?lang=2&procid=5959
> And if I change anything like add amp; ... you can't open the page
> anymore

This works fine for me:


An HTML browser knows that the link is to

Liam Quinn
Received on Saturday, 6 July 2002 19:56:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:28 UTC