Friday, 2 March 2012

Playing a YouTube Video in HTML


Playing a YouTube Video in HTML

If you want to display a video in a web page, you can upload the video to YouTube and insert HTML code to display the video in your web page.

Example - YouTube iFrame

<iframe width="420" height="345"
src="http://www.youtube.com/embed/XGSy3_Czz8k">
</iframe>

Try it yourself »

Example - YouTube Embedded

<embed
width="420" height="345"
src="http://www.youtube.com/v/XGSy3_Czz8k"
type="application/x-shockwave-flash">
</embed>

Try it yourself »

No comments:

Post a Comment