HTML Tutorial
HTML Forms
HTML Graphics
HTML Media
The easiest way to play videos in HTML, is to use YouTube.
YouTube will display an id (like tgbNymZ7vqY), when you save (or play) a video.
You can use this id, and refer to your video in the HTML code.
To play your video on a web page, do the following:
<iframe>
element in your web pagesrc
attribute point to the video URLwidth
and height
attributes to specify the dimension of the player
<iframe width="420" height="315"
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>
A comma separated list of videos to play (in addition to the original URL).