हिंदी

In a webpage, an audio file is embedded using element as per following code. But when HTML page is opened in Chrome browser, nothing is shown. What could be the possible reason?

Advertisements
Advertisements

प्रश्न

In a webpage, an audio file is embedded using element as per following code. But when HTML page is opened in Chrome browser, nothing is shown. What could be the possible reason?

<audio src="beyonce.mp3" >
   Your browser does not support
   AUDIO element.
</audio>
कोड लेखन
लघु उत्तरीय
Advertisements

उत्तर

Because there was no method to play the music due to the missing controls attribute, the audio file was invisible. To enable the user to hit “play”, we need to provide the audio file with some controls.

Therefore, the corrected code is:

<audio src="beyonce.mp3" controls="controls">
Your browser does not support AUDIO element.
</audio>
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: HTML- III: Audio, Video and Forms - Assisted Practice [पृष्ठ २२९]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
अध्याय 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 1. | पृष्ठ २२९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×