escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep escort gaziantep

«

»

Feb 12

How To Get YouTube embedded links validated

As you may know, the YouTube embedded links are not valid either XHTML 1.0 Transitional or HTML 4.01 Transitional. YouTube offers you a link like this:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/KMU0tzLwhbE&hl=de_DE&fs=1&"></param><param name="allowFullScreen" value="true"></param><param value="always"></param><embed src="http://www.youtube.com/v/KMU0tzLwhbE&hl=de_DE&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

This code implements a lot of information for the browser, but you only need the object-tag and the movie param. All others are optional parameters. Without setting them, the video will behave like default settings of the browser. So, this code can be shorten to:

<object style="width:425px; height:350px;" data=" http://www.youtube.com/v/KMU0tzLwhbE "><param name="movie" value=" http://www.youtube.com/v/KMU0tzLwhbE " /></object>

The only disadvantage is that you now have not the possibility to modify the appearance, i.e. colors.

I’ve tested this code in all common browsers, and it works.

  • Internet Explorer 5.5 (IETester)
  • Internet Explorer 6 (IETester)
  • Internet Explorer 7 (IETester)
  • Internet Explorer 8
  • Firefox 3.6
  • Opera 10.10
  • Safari 4
  • Google Chrome 4

Permanent link to this article: http://project89.com/valid-youtube-embedded-links-106/

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>