Quick Tip: Embed and Watch YouTube Videos in HTML5
Tips & Tricks
Embed and Watch YouTube VIdeos in HTML5
YouTube introduced a new a Embedding code last month. With this new enhanced code, your viewers will be able to see the video in a Flash or HTML5 players (Of course you will need a modern browser that supports HTML5 video ). If you have not tried the new code yet, let me show you how easy this is.
The New code uses <iframe> so it’s very easy to use. Just simply replace VIDEO_ID to the real Video ID in the code.
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0"></iframe>
The new embed code will allow embeds to work on mobile devices, which typically use a built-in player instead of Flash or HTML5.
In order to view YouTube Videos with HTML5 video player, you will need to Join the HTML5 Beta.
I have been using the New embed code for a while now.
Check some of the videos embedded in HTML5:


Xperia PLAY is Official [Videos]
YouTube Easter Egg: Play “Snake” while watching a video
Thrutu for Android – A Quick Review
The iPhone 3GS Fashion Shoot Video by Lee Morris of Fstoppers
Latest Collection of HTML5 Tutorials
Hey thanks for sharing this, just wannna let u know I bookmarked to your blog too……thanks