Video tag HTML5

Before the introduction of HTML5, a video could only be played in a browser with a plug-in (like flash).

The HTML5 <video> element specifies a standard way to embed a video in a web page.

<!DOCTYPE html>
<html>
<body>

<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>

</body>
</html>

By Pankaj Kumar Agarwal

Leave a reply:

Site Footer