How to Add Sound Links to Web Pages
Although sound can be included into a web page as inline sound (sound played upon entering the website), many users find this to be annoying; some have even turned off the capability for inline sound in their browser. The preferred way to allow users to access sound is to use a helper program and create a link that must be clicked in order to hear the sound. Commonly called "plug-ins," helper programs generally allow the user to control settings such as volume and play functions (such as stop, pause, play and rewind).
Instructions
-
-
1
Save the sound file in the same folder or directory as the HTML document you will be linking the sound file to is saved. For example, if you wish to play the WAV file "example.wav" on your homepage, save the sound file in the same folder in which your "homepage.htm" HTML document is saved.
-
2
Open a text editor or an HTML editor. These are the primary ways of editing web pages; even a text editor such as Notepad is adequate. Open the HTML document to which you wish to add the sound file.
-
-
3
Type the opening and closing tags used for including a normal link, <a></a> in the body section of your HTML document. Include the sound file (in our example the file is called example.wav) as the destination of the link in the opening tag using the "href" attribute. Also, add the text to be displayed by the browser between the opening and closing tags:
<a href="example.wav">Play this example sound file<a>
The browser will open a helper program such as Windows Media Player when the link is clicked. The helper program will begin playing the file when it has loaded.
-
1
References
- Photo Credit Digital sound image by Dumitrescu Ciprian from Fotolia.com