How to add download option to an audio in html file? | Sololearn: Learn to code for FREE!

+1

How to add download option to an audio in html file?

The following code is not working <audio controls> <source type="audio.mp3" type="audio/mpeg"> <source type="audio.ogg" type="audio/ogg"> </audio> Why this is not working? Is there any other way?

9/8/2020 7:39:35 AM

Ankit Meena

3 Answers

New Answer

+4

<a href="url" >right click to download </a>

+2

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <button> <a href="url">Download</a> </button> </body> </html

0

Thanks for help