Experiment 3
Experiment 3
Exp.no-3.1
Aim: Write a HTML program to embed audio and video into HTML web page.
Description: HTML5 features include native audio and video support without the need for Flash. The
HTML5 <audio> and <video> tags make it simple to add media to a website. You need to set src attribute
to identify the media source and include a controls attribute so the user can play and pause the media .
<video> tag which is used to embed sound content in an HTML or XHTML document as follows.
<video src = "foo.mp4" width = "300" height = "200" controls>
Your browser does not support the <video> element.
</video>
<audio> tag which is used to embed sound content in an HTML or XHTML document as follows.
<audio src = "foo.wav" controls autoplay>
Your browser does not support the <audio> element.
</audio>
Program:
<html>
<body>
<video controls loop poster ="C:\Users\Aditya\Pictures\download.jpg">
<source src ="C:\Users\Aditya\Videos\istockphoto-1438689886-
640_adpp_is.mp4">
</video>
</body>
</html>
<br><br>
<audio controls loop>
<source src="C:\Users\Aditya\Downloads\Urugi Urugi Song Ringtone.mp3">
</audio>
</body>
</html>
Output: