HTML Multimedia
HTML Multimedia
Web page contain different type and format of multimedia. Here i will
show you how to add audio, video and images on web page by using
html5.
Audio Tag
Html <audio> tag defines sound, such as music or other audio streams.
Now, there are three supported audio file formats for the <audio> tag; those are given
below;
MP3
Wav
Ogg
<!DOCTYPE>
<html>
<body>
<audio controls>
<source src="/html5/images/song.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
</body>
</html>
MP3 audio/mpeg
Ogg audio/ogg
Wav audio/wav
Video Tag
<video>tag are used to add video on web page. Html5 added new tag for add video
files on web page, before html5 it is achieved by using <embed> tag.
There are three supported video file formats for the <video> tag; those are given
below;
mp4
webM
ogg