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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -