Hello. I am making a website that passed the W3C validation with no problems, but as soon as i insert an Amazon affiliate add i get 28 Errors and 40 warnings and almost all of them are related to the Amazon link. Here is the link: <iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=000000&IS2=1&npa=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=data0de-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=0538434775" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe> Maybe someone knows how i can make a W3C valid link out of this? Or maybe how to get a valid link from Amazon directly? Thanks
When you get error in W3C you will also get solutions or some comments in it. I think iframe might have errors. As iframe is not W3C approved or its out of date.
The problem is that most characters produce some kind of an error. Maybe there is a way to rebuild that link using my Amazon ID? I also wrote to Amazon about this thing, but no reply yet.
Changing all the & to & should get rid of about 12 errors. Change the DOCTYPE declaration to Transitional if you are using Strict. That will help. iframe is not valid when using Strict. Any errors left you could check HTML <iframe> Tag on w3schools.
Nice, thanks. That fixed all my errors EDIT: i am new to all of this so i wanted to ask a quick question. Will my website get affected somehow by changing it from Strict to Transitional. For example, can my google rank get affected?
Nope. Whether you use a Strict or Transitional DOCTYPE declaration will not affect your rankings in Google.