Accessibility

CSS Advisor

Ensure validation of YouTube embedded video in XHTML

by ukracer on July 1, 2009
Edited by: sfegette on November 24, 2009
Avg Rating 4.5 (2)   |   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 (1)

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 (45)
Mozilla/Firefox (16)
Opera (7)
Safari (13)
CSS Properties
Background (6)
Border (3)
Color (1)
Float (15)
Font (1)
Margin (6)
Padding (4)
Position (15)
Text (13)
Width/Height (9)