Reputation: 9542
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 ?
Upvotes: 5
Views: 5259
Reputation: 13371
These attributes should be removed, not the inline style.
Upvotes: 2
Reputation: 13169
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.
Upvotes: 2