html5 audio tag

2019-12-19
  • html
  • web
  • file format : media type

    • MP3 : audio/mpeg
    • OGG : audio/ogg
    • WAV : audio/wav
    <audio controls>
      <source src="horse.ogg" type="audio/ogg">
      <source src="horse.mp3" type="audio/mpeg">
    Your browser does not support the audio element.
    </audio>
    

    대충 저렇게 쓰면 되는 것 같은데…

    출처