[HTML] Make YouTube embed code XHTML valid without Javascript
When you embed a video on to your website from YouTube you will find that your site will no longer successfully validate on the W3C validator.
This is because the embed tag is not supported, although it works on most browsers.
The code you get from YouTube is something similar to this:
1
2
3
4
5
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/jJpx9MEi6_M&hl=en&fs=1"></param>
<param name="allowFullScreen" [...]

Recent comments