HTML - YouTube Videos
The easiest way to play videos (others or your own) in HTML is to use YouTube.
Playing a YouTube Video in HTML
If you want to play a video in a web page, you can upload the video to
YouTube and insert the proper HTML code to display the video:
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 »
Thank You For Helping Us!
Your message has been sent to W3Schools.
Close [X]