YouTube With XHTML 1.0 Strict Valid!!
Posted on November 2006 at about 2:14 pm by hwaFor those who broadcast YouTube in their blog before, you should know that the YouTube embed tag is actually not XHTML valid, it's because the <embed> had been deprecated from XHTML 1.0.
By default the YouTube embed tag should looks something like this:
<param name="movie" value="http://www.youtube.com/v/m_Dxp5HQNIA"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/m_Dxp5HQNIA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">
</embed>
</object>
But it contain the <embed> HTML tag which is not allow in XHTML 1.0 Strict, so in order to make it pass the validation, i change the above code to something like this:
YouTube plays well with the new tag, and it doesn't have the <embed> tag, which is XHTML 1.0 Strict valid!








9 Responses Add your own
November 24th, 2006 at 5:25 am
Hey guys,
I have an iMac G5 running tiger 10.4.7 and I an having a wierd problem. Whenever I go to a site that has an embedded youtube, flash or some kind of video, there is no sound. If it a quicktime file there is no problem. There is not sound no matter what broswer I use, firefox, camino, safari, or shiira. And keep in mind that about a week ago I was not having this issue.
Help Would be awesome
Quote ThisThanks!
November 24th, 2006 at 6:57 pm
could it be possible that you disable the sound for your YouTube??
Quote ThisJanuary 8th, 2007 at 9:54 am
Thank you!
I have a XHTML project in in a few days, just what I needed. Thanks.
Quote ThisJune 5th, 2007 at 1:45 am
Thanks for your post about how to embed youTube content with valid XHTML 1.0 Transitional. It really helped me out!
Check out my site at http://www.jettisonhigh.com/projects/beatbox360/beatbox360.html and click on “video” on the left.
Thanks again!
Quote ThisJune 5th, 2007 at 11:21 pm
Thanks for this, I’ll be using this for my new site when embedding videos!
Quote ThisDecember 3rd, 2007 at 4:48 am
Very usefull thanks
Quote ThisMarch 30th, 2008 at 12:12 am
This works great except the original youtube code had wmode=”transparent”. When I use this code I have a white background rather than a transparent one. Is there a workaround to this?
Quote ThisMay 7th, 2008 at 2:41 am
Thanks for the XHTML strict youtube plugin. Excellent.
Quote ThisPingback on 07/12/2006 at 05:49:24
Leave a Reply