What I want to do is to embed music files within a website (Have something a’la little mp3 player on the site). I want the audience to be able to play, stop etc the songs by using custom made controllers.
How do I code those custom made buttons so that they all work fine?
You can use plenty of things.
<audio>tag:Here is the official W3C specification for the audio tag.
Usage:
jsFiddle here.
Or, if you want to support older browsers, you can use many of the free audio flash players available. Such as:
Note: I’m not sure which are the best ones, as I have never used one (yet).
UPDATE: As mentioned in another answer’s comment, you are using XHTML 1.0 Transitional. You might be able to get
<audio>to work with some hack.UPDATE 2: I just remembered another way to do play audio. This will work in XHTML!!! This is fully standards-compliant.
You use this JavaScript:
This is my answer to another question.
UPDATE 3: To customise the controls, you can use something like this.