Welcome to WebmasterWorld Guest from 54.163.115.193

Forum Moderators: incrediBILL

How to make this xhtml1.0 transitional?

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

5+ Year Member



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)

5+ Year Member



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)

5+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

5+ Year Member



&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

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month