W3C home > Mailing lists > Public > www-validator@w3.org > June 2005

Re: Web Trends Tracking URL

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 22 Jun 2005 17:57:18 +1000
Message-ID: <42B919DE.8010609@lachy.id.au>
To: David Hallmark <dh@cvwp.com>
CC: www-validator@w3.org

David Hallmark wrote:
> Greetings,
> I am searching all over on how to defeat the "&" in the Web Trends 
> tracking code but cannot find anyplace that addresses this issue.

You found the correct answerl but for some reason, you rejected it.

> When I validate the page the only error I get is in the one line.....
> http://www.childrensneuropsych.com/david-page2.html
> The img src line is just above the </body> tag.  I cannot replace it 
> with "&amp;"... any ideas?

There is a difference between typing this:
into the address bar of your browser, and using that within HTML markup. 
  I am assuming this is the source of your incorrect conclusion, as it 
is the only possible explanation I can think of.

In HTML, the &amp; character entity reference is decoded by the browser 
and the resulting URI that gets requested will be:

However, if you type the URL with the &amp; into your browser's address 
bar, it will not work becuase it is not processed as markup in that case.

> P.S.  I just wanted to tell you folks that I did a site and validated 
> every page and got a serious boost in the search engines... Thank You!

It's unlikely that the validation itself caused a higher ranking, though 
it does help if you use well structured, semantic markup; which does 
need some improvement on your site.  eg. Stop using tables for layout, 
use the <p> element to contain each paragraph, rather than seperating 
them with <br><br>, use more appropriate alt text for the heading image, 
and the headings should be marked up using <h1> to <h6> elements, etc.

Lachlan Hunt
Received on Wednesday, 22 June 2005 07:58:01 UTC

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