FreewayTalk

2 replies to this thread. Most Recent

Heather Kavanagh

19 Aug 2008, 10:58 am

Ampersands, encoding and validation

Hi

I’ve done a search of the forum, but not found precisely the right answer to this.

Please take a look at http://www.mandmkent.co.uk

If you can, run the page through the W3C validator for (X)HTML. You should get seven errors/warnings, and they’re mainly all about errors in metatags on the page.

The company name is M&M Associates. There are warnings about ampersands in the page code as well, but even when I’ve tried adding the & entity as markup in those situations, they still get flagged. The posts on this forum are about escaping ampersands in URLs, and don’t seem to cover the exact situation I find myself in.

I’m keen to have the site pass as much validation as possible, but the ampersand problems have me stumped. Do the code gurus have any ideas?

Thanks.

Heather

quote

I’d like the chance to prove that money doesn’t make me happy. - S. Milligan.

waltd

19 Aug 2008, 12:16 pm

The rest of the page is fine, but in the meta tags, you have used the ampersand and Freeway has ignored it for some reason. Try manually escaping all of the ampersands in those tags:

<meta name="DESCRIPTION" content="M&amp;M Associates (Kent) Ltdprovides creative, design and rebranding services, digital largeformat printing, web design, and exhibition and display systems toLondon and Kent. We will happily come to you to discuss yourrequirements. Free Delivery!"/>
<meta name="NAME" content="M&amp;M Associates (Kent) Ltd"/>
<meta name="COPYRIGHT" content="Site content and design is copyright© 2008 M&amp;M Associates (Kent) Ltd"/>

Really, Freeway should be doing this for you.

Walter

On Aug 19, 2008, at 6:58 AM, Heather Kavanagh wrote:

Hi

I’ve done a search of the forum, but not found precisely the right answer to this.

Please take a look at http://www.mandmkent.co.uk

If you can, run the page through the W3C validator for (X)HTML. You should get seven errors/warnings, and they’re mainly all about errors in metatags on the page.

The company name is M&M Associates. There are warnings about ampersands in the page code as well, but even when I’ve tried adding the & entity as markup in those situations, they still get flagged. The posts on this forum are about escaping ampersands in URLs, and don’t seem to cover the exact situation I find myself in.

I’m keen to have the site pass as much validation as possible, but the ampersand problems have me stumped. Do the code gurus have any ideas?

Thanks.

Heather

quote

Freeway user since 1997

http://www.walterdavisstudio.com

Back to Top

Heather Kavanagh

19 Aug 2008, 12:45 pm

On 19 Aug 2008, at 13:16, Walter Lee Davis wrote:

Really, Freeway should be doing this for you.

Thanks, Walter. I’m trying the escaping now. I’ve been working on a tunnel for some time now…

short time later

Cool! That worked. Excellent.

Heather


http://www.softpress.com

“Freeway - Web Design for All”

quote

I’d like the chance to prove that money doesn’t make me happy. - S. Milligan.