If you are getting a message ‘There is no attribute allowTransparency‘ while validating your site with W3C Validator then this post is for you.
If you are using document type XHTML Transitional then maybe i can solve your problem. The attribute allowTransparency belongs to iframe. So we will be taking up a short code containing iframe tags with the attribute allowTransparency in it.
The best example would be Facebook Like Box, because most blogs and websites use it and it failsto validate with W3C Validator.
The code for Facebook like box with Page Username Codefap is given below -
We have written two codes for the Facebook Like Box – One with allowTransparency with if statement for IE and other one without it. And this solvesthe problem. By using this embed code with conditional HTML elements, you can validate your site properly even after using allowTransparency attribute on the web page.
About Omkar Bhagat
Omkar is the owner of Codefap.com. He writes blogs, makes video tutorials and love to learn new things about computers and programming.