<embed> tag defines a container for external (non-HTML) content.
A Flash video embedded in a web page is given next:
<embed src="intro.swf" height="90" width="90">
<object> tag tag can also define a container for external content.
A Flash video embedded in a web page is given next:
<object data="intro.swf" height="90" width="90"></object>
<video> tag defines a video or movie.
The following example uses the HTML5 <video> tag, which specifies one MP4 file, and one OGG file.
If something fails, it will display a text:
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
<video> element + the <embed> element.
The example below uses the <video> element and tries to play the video either as MP4 or OGG.
If that fails, the code “falls back” to try the <embed> element:
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
<object data="movie.mp4" width="320" height="240">
<embed src="movie.swf" width="320" height="240">
</object>
</video>