13. How can you insert audio and video in an html file ?
Answers
Answered by
4
Explanation:
Create a new HTML file in the same directory, called index. html . Add <audio> and <video> elements to the page; make them display the default browser controls. Give both of them <source> elements so that browsers will find the audio format they support best and load it.
Answered by
3
Yes , we can do so by using the following tags:
For Audio
<audio controls>
<source src="audio_link" type="audio/ogg">
</audio>
Example:
For Video:
<video width="200px" height="150px" control>
<source src="video_link" type="video/mp4">
</video>
Example:
Similar questions