YT spits out invalid xhtml for embed code, so have been trying to get to grips with validating pages with embedded videos. Came across this today. Any thoughts? Does it work with all browsers? I've got the modern ones - so can't test the oldies.

<object type="application/x-shockwave-flash" data="[B]http://www.youtube.com/v/vUzTQWn-wfE&amp;hl=en_US&amp;fs=1&amp;rel=0[/B]" width="400"
 height="326"> <param name="movie" value="[B]http://www.youtube.com/v/vUzTQWn-wfE&amp;hl=en_US&amp;fs=1&amp;rel=0[/B]" /> <param name="FlashVars" value="playerMode=embedded" /> </object>

(I just took a random video). Seems not to like Chrome?

Edited by diafol: n/a

8 Years
Discussion Span
Last Post by MidiMagic

We don't embed anymore. The embed tag is deprecated code, and was never supported by all browsers. It never did validate.

Your code may be correct, but not supported by Chrome. Chrome is new enough that they might have left something out.

Edited by MidiMagic: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.