Thursday, 15 August 2013

html - Insert audio file in web page -


I want to insert an audio file into my web page. I have MP3, but not .ogg, so my audio will not play, what can I do to insert that file? I have the following code:

  & lt; Audio Control Autoplay & gt; & Lt; Source src = "Viva-la-Vida.mp3" type = "audio / mpeg" & gt; Your browser does not support the audio element. & Lt; / Audio & gt;  

Please correct me if I said something wrong. Thank you in advance!

The code you specify. Working with MP3 file. You can do two things.

  1. Check the path specified in the src attribute for the MP3 file.
  2. Run your .html file in different browsers.

No comments:

Post a Comment