| Playing Audio Files |
|
|
Forms
|
Course Contents
|
| Contents: | Audio File Formats | Inline Audio | Background Audio |
Inline Audio:There are two (2) ways to place inline audio files in HTML. The first (shown directly below) uses a simple hypertext reference anchor to an audio file. The second uses the <EMBED> command (see discussion below).
Hypertext Reference Anchor -Sounds can be included on webpages using simple hypertext reference anchors which point to audio files. See also the discussion on Anchors & Links.The general form of the inline audio link would be:
Where URL is the full path to the audio file to be played and Link_Text is the visible clickable link. Example:
Yields -
When the link is followed the browser will use either default built-in or external audio plug-ins to play the sound in an audio console window. This technique will work with any audio file type recognized by the browser and its associated plug-ins. Click on the link above to demonstrate the action. |
Background Audio:There are four (4) methods of playing background audio files on a webpage:
You are here: NetStrider » Tutorials » HTML » AUDIO «
|