Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
265 views
in Q2A Core by
How to add Audio file in HTML?
Q2A version: 5

1 Answer

0 votes
by

This is the sample of code you have to write for adding audio in HTML.

<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>

...