Playing sound on a button click
Regarding the HTML:

script element

For JavaScript, you can simply use &lt;script&gt; without the type attribute:


  If the language is not that described by "text/javascript", then the type attribute must be present


The language attribute is obsolete:


  Authors should not specify a language attribute on a script element.


a element

I'd say a real button should be used here, not a link:


button element with button type: &lt;button type="button" onclick="…"&gt;Click here to hear a sound&lt;/button&gt;
input element with button type: &lt;input type="button" onclick="…" value="Click here to hear a sound" /&gt;