Welcome to WebmasterWorld Guest from 54.211.82.105

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to make this xhtml1.0 transitional?

     
4:42 pm on Aug 23, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Apr 30, 2006
posts:349
votes: 0


My DTD is XHTML 1.0 Transitional

My page is not validating because of this amazon affiliate product code. How to go around this?

<iframe src="http://rcm.amazon.com/e/cm?t=myaffiliatecode&o=1&p=8&l=as1&asins=B000VPKFQI&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
</iframe>

5:17 pm on Aug 23, 2008 (gmt 0)

Preferred Member

5+ Year Member

joined:Dec 10, 2007
posts:507
votes: 0


You'll need to convert all the & to &amp;

Run your page through the W3C validator and follow what it says, it will give you guidelines on whats wrong.

:)

2:01 am on Aug 24, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Apr 30, 2006
posts:349
votes: 0


You'll need to convert all the & to &amp;

If I change this, will my affiliate code still work? Can Amazon deny commission or terminate my membership for changing the code?

4:32 am on Aug 24, 2008 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 4, 2001
posts: 2179
votes: 19


If I change this, will my affiliate code still work?

No. The changes will take you to a default Amazon page (Try it yourself). This is one of those exceptions to the rule as in this case, the & is not used in the sense of Black & White, but as a link. If you want to validate your page, remove the link information, validate the page, then put the link back in.

Marshall

4:38 pm on Aug 25, 2008 (gmt 0)

New User

5+ Year Member

joined:Aug 25, 2008
posts: 4
votes: 0


&amp;s in URLs should work fine, as all you are doing is encoding the ampersand character in the HTML, it is not actually changing the text of the link as it is seen by a web server.

I can't see how that would affect the affiliate code at all.

Also, what is the point of removing things from a page to validate it, and then putting them back in? :S