How to add audio in html from gallery?? Solve | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
4 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