Computer Science, asked by chanbaka632, 9 months ago

13. How can you insert audio and video in an html file ?​

Answers

Answered by vy1551128
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 DrNykterstein
3

Yes , we can do so by using the following tags:

For Audio

<audio controls>

<source src="audio_link" type="audio/ogg">

</audio>

Example:

</p><p>&lt;audio controls&gt;</p><p></p><p>&lt;source src="audio_source" type="audio/ogg"&gt;</p><p>Brainly doesn't support audio tag.</p><p>&lt;/audio&gt;</p><p>

For Video:

<video width="200px" height="150px" control>

<source src="video_link" type="video/mp4">

</video>

Example:

</p><p>&lt;video width="200px" height="150px" control&gt;</p><p></p><p>&lt;source src="video_link" type="video/mp4"&gt;</p><p></p><p>Brainly doesn't support video tag.</p><p></p><p>&lt;/video&gt;</p><p>

Similar questions