Scott Klarr Jr
How to make google video and youtube players W3C Xhtml valid
Posted On Oct 21, 2008 at 9:41 pm
You may have noticed that if you copy the flash embed code from youtube, it is not actually standards-compliant and will break your W3C validation. Here is the proper way to embed google video and youtube videos.
Youtube Player

<object type="application/x-shockwave-flash"
style="width:425px; height:344px;"
data="http://www.youtube.com/v/VIDEOID&hl=en&fs=1" >
<param name="movie"
value="http://www.youtube.com/v/VIDEOID&hl=en&fs=1" />
<param name="allowFullScreen" value="true"></param>
</object>
Google Video Player

<object type="application/x-shockwave-flash"
style="width:425px; height:344px;"
data="http://video.google.com/googleplayer.swf?docid=DOCID" >
<param name="movie"
value="http://video.google.com/googleplayer.swf?docid=DOCID" />
<param name="allowFullScreen" value="true"></param>
</object>
This topic has the following tags:
Last 5 Linkbacks
- Oct 17, 2009topsy.com



Jerwin Oct 23, 2008
hello,
That was i notice before. But my plan is to have a database then the i just input the url of youtube or google video. Then when the list appear in some page then, when i click the link, there another page that get the value of the v=2245dfdf5; in this another page include the condition of dynmic value of v=345fsdjf according to the database.
Abercrombie And Fitch Feb 19, 2010
Thank you very much for your geat post,Learned a lot and saw a lot about a lot!
Yeni Diziler Mar 02, 2010
Thank you very much for your geat post...