WebAIM - Web Accessibility In Mind

E-mail List Archives

Youtube Videos Embedded to a WordPress Blog

for

From: Joey G.
Date: Dec 3, 2014 5:02PM


Hello,



I own a self-hosted WordPress blog. I get most of the videos from Youtube by
getting the embed code and paste in the post. However using Firefox as
browser, I couldn't locate the buttons like the play button and just the
link pointing to the Youtube video.



But if I get the video URL and paste in the post, everything is fine. I can
see the buttons and also the sliders.



But when I validate the page using the W3C validator, I get these following
errors:



Line 182, Column 355: Attribute type not allowed on element iframe at this
point..;wmode=transparent' frameborder='0'
allowfullscreen='true'></iframe></span></p>



Line 182, Column 355: Bad value true for attribute allowfullscreen on
element iframe..;wmode=transparent' frameborder='0'
allowfullscreen='true'></iframe></span></p>



Line 182, Column 355: The frameborder attribute on the iframe element is
obsolete. Use CSS instead..;wmode=transparent' frameborder='0'
allowfullscreen='true'></iframe></span></p>



The problem is there's no way for me to edit the HTML when doing the URL
style unlike the embed code.



Can anyone tell me how to fix this? Or I can leave it as it is as long as it
is accessible for the screen readers.



I want my webpage to validate as HTML5 and these Youtube videos prevent me
from accomplishing that.



Thanks,

Joey