Re: Validation Help

by "Bert" <bert(at)betterwebdesign.com.au>

 Date:  Thu, 18 Jul 2002 22:21:18 +0800
 To:  "Gozer The Destructor" <flouric(at)mac.com>
 Cc:  <hwg-basics(at)hwg.org>
 References:  mac
  todo: View Thread, Original
G'day

> If one or more of you could go to my homepage and click on the link at the
> bottom right it will show you the results of the validator that I'm
getting.
> I'd appreciate advice on how I could change these links to make them
> validate without changing them to such an extent that they no longer work.

The answer is rather simple.  The & (ampersand) has a special meaning in
HTML (and XHTML) 0 it is used to designate special character entities.  The
links however use them for passing data to a script (another use for the
ampersand character) and the validator does not know that.

The simplest (and valid/correct) way to overcome the problem is to change
all the ampersands in the links to &amp;

In case your mail program translates the code to an actual ampersand
character, here is a version that should show up properly: &amp;amp;

See http://www.w3.org/TR/html401/sgml/entities.html and in particular
http://www.w3.org/TR/html401/sgml/entities.html#h-24.4.1

--
Bert Doorn, Web Developer
CIW Associate, IWA Member
www.betterwebdesign.com.au
Fast Loading, User Friendly Websites

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.