- Back to Home »
- Windows store apps HTML5 »
- HTML5 audio and video tags
Posted by :
Sudhir Chekuri
Friday, 15 November 2013
HTML5 contains audio and video tags to play audio files and video files directly on the webpage without using any plugins.
Example HTML5 code with audio and video tags
<!DOCTYPE HTML>
<html>
<body>
<audio controls>
<source src="Krrish.mp3" type="audio/mpeg">
Your browser does not support this audio format.
</audio>
<video>
<source src="Krrish.mp4" type="video/mp4" />
</video>
</body>
</html>
Example HTML5 code with audio and video tags
<!DOCTYPE HTML>
<html>
<body>
<audio controls>
<source src="Krrish.mp3" type="audio/mpeg">
Your browser does not support this audio format.
</audio>
<video>
<source src="Krrish.mp4" type="video/mp4" />
</video>
</body>
</html>