English

Write any two ways to add an audio file in a web page using HTML? Explain with sample code. - Computer Applications

Advertisements
Advertisements

Question

Write any two ways to add an audio file in a web page using HTML? Explain with sample code. 

Code Writing

Solution

  1. Using < EMBED > tag
    <EMBED SRC = "audio.mp3" >
    
  2. Using <Audio> tag
    < AUDIO controls>
    <source src="horse.mp3" >
    Horse.mp3
    </AUDIO>
    
shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×