+ 5

How to add audio in html from gallery?? Solve

I added audio in code but it can't load. --Is audio end tag is optional or necessary? #audio #source https://code.sololearn.com/W9k04sl5U1Ir/?ref=app

28th Dec 2020, 3:41 PM
Jp (Jay )
Jp (Jay ) - avatar
5 Answers
+ 5
Add the audio from your phone to Dropbox and then just copy the link from dropbox and paste it inside the <audio> https://www.sololearn.com/discuss/1054246/?ref=app
28th Dec 2020, 3:44 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 5
easy just download Dropbox (best) <audio controls autoplay> <source src="https://www.dropbox.com/s/zqe074bl45txttk/Ummon%20Hiyonat%20Ringtone.mp3?raw=1" type="audio/mp3"> </audio>
30th Dec 2020, 12:42 PM
devfemibadmus
devfemibadmus - avatar
+ 4
audio is not an empty tag so it won't self-close so you need the closing </audio>. Paste the code or a link to the page where it isn't working. There is a lot of potential causes for it to break when we can't see the code or reproduce the problem. If a working example helps, check out: https://www.w3schools.com/html/html5_audio.asp
28th Dec 2020, 3:44 PM
Josh Greig
Josh Greig - avatar
+ 2
Sabela PĂ©rez yupp this is working..
30th Dec 2020, 3:47 AM
Jp (Jay )
Jp (Jay ) - avatar