What Happens If a Hyper Link Points to a Music File

Q

What Happens If a Hyper Link Points to a Music File? - XHTML 1.0 Tutorials - Understanding Hyper Links and URLs

✍: FYIcenter.com

A

If you want to build a hyper link to allow visitors to access a music/sound file by clicking a hyper link, you can put the URL of the music/sound file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch the music/sound file, and launch an audio player program to play it for you automatically.

The tutorial example below shows you how music/sound files can be linked by hyper links:

<p>Click the hyper link to hear the 
<a href=
"http://sunsite.sut.ac.jp/multimed/sounds/birds/whip_bird.au"
>Bird Sound</a> provided by sunsite.sut.ac.jp.</p>

The above code is included below in this document, so you can try it now.

Click the hyper link to hear the Bird Sound provided by www.ihrcanada.com.

2007-05-12, 13193👍, 0💬