download option in HTML?

How can I make  .mp3 file donwload link in html?

<a href="audio.mp3">Click here to Download</a>
when i click on the link, the mp3 file just play in browser.

 <a href="audio.zip">Click here to Download</a>
when i zip a file it begin to download.

But i dont want to zip a file, how can i download mp3 files without zipping them?

Thanks.
shahzad198509Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mrichmonConnect With a Mentor Commented:
You can't control this.

It is up to each browser on how they have chosen to implement each file type - whether to download or open.  In my browser it downloads mp3 files.  In yours it does not.

You could put up instructions:
To download this file right click on the link and choose "Save As..."
0
 
shahzad198509Author Commented:
can i control this with php scripting language?
0
 
meenaxiCommented:
Your first coding itself is enough to download mp3.

<a href="audio.mp3">Click here to Download</a>

i checked with IE and Firefox
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.