मराठी

How can we embed audio in an HTML document? Give an example to support your answer. - Computer Applications

Advertisements
Advertisements

प्रश्न

How can we embed audio in an HTML document? Give an example to support your answer.

थोडक्यात उत्तर

उत्तर

The newly added HTML5 <audio> element standardizes audio embedding in web pages. The audio element, on the other hand, is relatively new, yet it works in most modern web browsers. The sample below adds audio into an HTML5 document using the browser's standard controls and one source defined by the src property.

Example:

<audio controls="controls">
<source src="media/birds.mp3"    type="audio/mpeg">
<source src="media/birds.ogg" type="audio/ogg">
Your browser does not support the HTML5 Audio element.
</audio>

shaalaa.com
Inserting Audio and Video
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2022-2023 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×