IIC 2: Multimedia

HTML allows you to "embed" audio files into your HTML documents to enhance them or to create a mood (through music). Internet Explorer can use the proprietary <EMBED> tag to do this, but the much better way is to use the <object> tag, which is supported by all standards compliant browsers.

<object data="media/TIE.mid" type="audio/mid" />

The data attribute specifies the location of the file, the type specifies the type of file and how it is supposed to be played.

Some common file types and their associated object types are listed below.

File Type
midi audio/mid
mp3 audio/mpeg
wav audio/x-wav
mpeg video/mpeg
avi video/x-msvideo