Thuta Learning
AdvancedWeb Developmentbeginner

Audio

Relax. We'll talk through this in plain words — no textbook voice.

<audio> is used to embed an audio player. Adding multiple sources lets the browser pick whichever format it supports.

html
<audio controls>
  <source src="song.mp3" type="audio/mpeg">
  <source src="song.ogg" type="audio/ogg">
  Your browser does not support the audio element.
</audio>
You should see
A player with audio controls will appear.
Audio | Thuta Learning