html audio tag
snippet in html

how to embed audio in html

user3487

<audio controls>
  <source src="name.mp3" type="audio/mp3" />
</audio>

how do you play audio files on html

user5171

<audio src="sound.mp3" autoplay></audio>

html audio tag

user3741


    <audio controls>

  <source src="horse.ogg" type="audio/ogg">

  <source src="horse.mp3" type="audio/mpeg">

  Your browser does not support the audio tag.

 </audio>
 

audio html tag

user7160

MIME Types for Audio Formats
Format	MIME-type
MP3		audio/mpeg
OGG		audio/ogg
WAV		audio/wav

If simply audio '<audio>' tag is written then audio controls will not appear on the web page.
and for showing audio controller we need to write controls attribute in audion tag '<audio controls>'.

Example
<audio controls>
  <source src="horse.mp3" type="audio/mpeg">
</audio>

video and audio tag in html

user947


    <video width="320" height="240" controls>

  <source src="movie.mp4" type="video/mp4">

  <source src="movie.ogg" type="video/ogg">

  Your browser does not support the video tag.

 </video>