Embedding YouTube Videos as Valid XHTML 1.0
By Chty on Tuesday, June 12 2007, 00:49 - Software - Permalink
In the last post, I have embedded a YouTube Video. I was suprised when I see this part of YouTube code wasn't XHTML 1.0 Valid. Thereafter you will find a somewhat easy correction.
So, instead of :
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/aJFn9YrJIyE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/aJFn9YrJIyE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Use :
<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/aJFn9YrJIyE"><param name="movie" value="http://www.youtube.com/v/aJFn9YrJIyE" /></object>
Comments
Moi aussi j'étais surprise... En même temps beaucoup de choses me surprennent... :p