⟩ Tell me How to add video and audio in HTML5
The canvas element is used to draw graphics images on a web page by using javascript like below
Like below we can add video in html5
<video width=“320″ height=“240″ controls=“controls”>
<source src=“mysong.mp4″ type=“video/mp4″ />
<source src=“mysong.ogg” type=“video/ogg” />
</video>
And audio like this
<audio controls=“controls”>
<source src=“mysong.ogg” type=“audio/ogg” />
<source src=“mysong.mp3″ type=“audio/mpeg” />
</audio>