Exno8Handling multimedia content in web sites
Exno8Handling multimedia content in web sites
Aim:
To add audio and video type into the HTML page.
Procedure:
Different ways to add media to the HTML page:
Using HTML Audio tag: This tag is used to include the audio media type into the
websites.
Using HTML Video tag: This tag is used to include the video media type into the
websites.
Ex No 8 a) Adding audio media type into the HTML page. The developer can
use their own src file for implementation.
<!DOCTYPE html>
<html>
<body>
<p>Audio Sample</p>
</body>
</html>
OUTPUT
<!DOCTYPE html>
<html>
<body>
<center>
<h1 style="color:green;">
Hello everyone
</h1>
<p>
<video width="450" height="250"
controls preload="auto">
<source src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190616234019/Canvas.move_.mp4"
type="video/mp4">
<source src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190616234019/Canvas.move_.ogg"
type="video/ogg">
</video>
</center>
</body>
</html>