Today's Sweetmorn, the 68th day of Discord in the YOLD 3178.

YouTube and valid XHTML

2007-06-07 by xpheas
I brodcast some YouTube and Zabim movies on my blog,
The uncool thing is that, that the YouTube and Zabim embed Tag is actually not XHTML valid.

The YouTube embed Tag looks like this:

HTML-Code:
1
2
3
4
5
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/WTC0UvS9mXA"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/WTC0UvS9mXA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
</object>


It contains the <embed> tag, which is not allowed in XHTML 1.0 Strict.
To make the code valid, i changed the code abrove to something like this:

HTML-Code:
1
<object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/WTC0UvS9mXA"><param name="movie" value="http://www.youtube.com/v/WTC0UvS9mXA" /></object>


YouTube and Zabim plays well and it's valid XHTML 1.0 Strict!

  « back

Feel Free to Leave a Comment

Name:*


Email: (not visible)


Website:


Comment:*