In my website(HTML5), i have facebook like option.
But validating through w3c validation, its showing error like this:
The frameborder attribute on the
<iframe>
element is obsolete. Use CSS instead.
If i am using css for style='border:none; overflow:hidden; width:75px; height:27px;
Then it showing
"The scrolling attribute on the <iframe>
element is obsolete. Use CSS instead."
<div style='float:left; padding:6px 0 0 0px'>
<iframe allowTransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/like.php?href=' style='border:none; overflow:hidden; width:75px; height:27px;'></iframe></div>
</div>
If i am removing every inline style and giving in css,then its not showing any error except allowTransparency.
Why ?
These attributes should be removed, not the inline style.
According to the W3 HTML5 specification there is no allowTransparency, frameborder or scrolling attribute for the iframe element. So your page will never validate while you try to include any such attributes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With