There are three formats that are supported:
MP3 which is Audio format from MPEG (Moving/Motion Pictures Experts Group)
AAC which is Advanced Audio Coding
OGG which is An Open container and free audio format
There are a number of other features you can include when displaying an HTML video. Take a look at our next example:
<video controls width="400" height="400"
autoplay loop muted preload="auto"
poster="poster.png">
<source src="rabbit320.mp4" type="video/mp4">
<source src="rabbit320.webm" type="video/webm">
<p>Your browser doesn't support HTML video. Here is a <a href="rabbit320.mp4">link to the video</a> instead.</p>
</video>
The new features are:
“none” does not buffer the file “auto” buffers the media file “metadata” buffers only the metadata for the file.
The<audio> element works just like the <video> element, with a few small differences as outlined below. A typical example might look like so:
<audio controls>
<source src="viper.mp3" type="audio/mp3">
<source src="viper.ogg" type="audio/ogg">
<p>Your browser doesn't support HTML5 audio. Here is a <a href="viper.mp3">link to the audio</a> nstead.</p>
</audio>
if u want to learn how to do this exactly vist this page is a gold resource.