html – Audio tag in Safari. Why doesn't the code work?


Could you please clarify why the given code does not work in the Safari browser:

<audio controls="controls">
  <source src="/catcher.ogg" type="audio/ogg" />
  <source src="/catcher.mp3" type="audio/mp3" />
  Your browser does not support the audio tag.

It seems that the required codec is connected, but the music is not played.

What is wrong, please tell me?


Must support. Try to specify the desired codec in type

Scroll to Top