html - Is it a Must to Validate Global Codes? -
there global codes not valid according w3c standards example can consider youtube embed code or facebook plugins. in such cases, shall do?
<iframe width="560" height="315" src="http://www.youtube.com/embed/6mxng9hsyyo" frameborder="0" allowfullscreen></iframe>
what suggest me in such cases? edit codes ensure w3c validation or leave these when entire website w3c validated?
best regards, touhid
the validation error given (when checking in html5) is:
the frameborder attribute on iframe element obsolete. use css instead.
basically means frameborder
no longer supported in html5 (and can achieved through css). reason still included, however, because not browsers have html5 support - works fall-back.
you shouldn't have problems removing attribute if want site pass validation tests, it's unlikely issues ever arise leaving attribute there.
Comments
Post a Comment