How to ensure YouTube embedded video is W3C compliant. DW does not flag-up that the 'embed' is non compliant with W3C standards.
Use the code in this posting to ensure W3C compliance of YouTube embedded videos.
<object type=”application/x-shockwave-flash” width=”425″ height=”350″ data=”http://www.youtube.com/v/yourcode“><param name=”movie” value=”http://www.youtube.com/v/yourcode” /></object>
The parts where it says yourcode needs to be replaced with the extension that applies to the location of your YouTube video - this is present in the orginal embed code and can be just copied and pasted across.
Text ID: YOUTUBE_EMBEDDING_TO_XHTML
To add a comment, please Log in.
Not working with IE 7 & 8
by galacticgarry on November 17, 2009
Can't get the above to work with Internet Explorer 8/7 on a Windows XP laptop , Works okay in Firefox on PC and on My Mac...
Thnaks