+ 8

How to add audio in HTML

Audio

11th Mar 2018, 7:16 AM
Ashish Mishra
Ashish Mishra - avatar
7 Answers
+ 6
You cannot add audio in CSS well... Add audio using HTML or JavaScript..
11th Mar 2018, 7:18 AM
Aaron Stone
Aaron Stone - avatar
+ 9
Yeah sure.. Add audio in HTML like this.. <audio controls>   <source src="audio.ogg" type="audio/ogg">   <source src="audio.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>
11th Mar 2018, 7:23 AM
Aaron Stone
Aaron Stone - avatar
+ 8
Almost all browsers including IE 9 and its higher versions support this.
11th Mar 2018, 7:24 AM
Aaron Stone
Aaron Stone - avatar
+ 7
Ok, okay, I change question.
11th Mar 2018, 7:20 AM
Ashish Mishra
Ashish Mishra - avatar
+ 3
19th May 2018, 8:33 PM
Yesh Jadav
Yesh Jadav - avatar
+ 3
https://code.sololearn.com/W2J9yIZmd6JN/?ref=app
27th Oct 2020, 2:28 PM
HARDIK JAIN
HARDIK JAIN - avatar
+ 2
12th Mar 2018, 5:36 PM
Marwan Radwan
Marwan Radwan - avatar