4.2. Basic multimedia applications on the Web

4.2.1. A simple page with sound and music

One of the simplest ways to include multimedia files on Web pages is to use the anchor element <a> and let your system handle all the sound and video playback. For example, suppose you have a sound file called mu_mid.mid. The sound format and file extension are supported by your system. To play this music on your browser, all you have to do is to issue the anchor element such as

   <a href="mu_mid.mid">click me to play some sound</a>

When you press the underlined text, the default player of your system will be called to play the sound file. In this case, we assume the music file mu_mid.mid is in the current directory. Otherwise you may need to specify the ...

Get Practical Web Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.