Accessibility

CSS Advisor

Ensure validation of YouTube embedded video in XHTML

by ukracer on July 1, 2009
Edited by: sfegette on October 23, 2012
Avg Rating 4.3 (4)   |   Log in to rate post.

Tagged with Video , Firefox 1.0 , Explorer 6.0 , Safari 2.0 , Opera 7.x , Flash , Explorer 7.0 , Firefox 1.5 , Width/Height , Safari 1.0 , Opera 8.5 , Explorer for Mac

Problem

How to ensure YouTube embedded video is W3C compliant. DW does not flag-up that the 'embed' is non compliant with W3C standards.

Solution

Use the code in this posting to ensure W3C compliance of YouTube embedded videos.

Detailed description

<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



Comments (2)

To add a comment, please Log in.




Not working with IE 7 & 8

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





CSS Advisor home
Submit a post

rss

CSS ADVISOR RSS FEEDS
Recent: POSTS | COMMENTS | EDITS


Browsers
Internet Explorer (103)
Mozilla/Firefox (52)
Opera (18)
Safari (38)
CSS Properties
Background (25)
Border (10)
Color (10)
Float (23)
Font (6)
Margin (11)
Padding (9)
Position (40)
Text (30)
Width/Height (27)