Youtube code-snippet for embedding video not XHTML compliant.
Saturday, August 11th, 2007According to the W3C Markup Validation Service the snippet suggested by youtube to embed video isn’t valid XHTML 1.0 Transitional. Google to the rescue! A quick search revealed the following compliant alternative:
<div style="text-align:center"> <object type="application/x-shockwave-flash" style="width:425px; height:350px" data="http://www.youtube.com/v/VIDEO_ID"> <param name="movie" value="http://www.youtube.com/v/VIDEO_ID"> </param> </object> </div>
