You can include media in the two recommended ways below. There are also some browser-specific ways that we wont discuss. Also, be aware that the common formats supported by most browsers without downloading additional helper application software for sound is either: wav or au and for movies is: mpeg, avi, quicktime. Ofcourse many people have applications to assist with realaudio/realvideo, mp3, midi and other formats.
<a href="file.wav">Click here to play Sound File</a>
<a href="file.mpeg"> Click here to play Movie</a>
An example: Click here to play welcome
<html>
<body>
<video controls="controls" autoplay="autoplay">
<source src="movie.ogg" type="video/ogg" />
<source src="movie.mp4" type="video/mp4" />
<source src="movie.webm" type="video/webm" />
Your browser does not support the video tag.
</video>
</body>
</html>
NOTE:
- Ogg = Ogg files with Theora video codec and Vorbis audio codec
- MPEG4 = MPEG 4 files with H.264 video codec and AAC audio codec
- WebM = WebM files with VP8 video codec and Vorbis audio codec
<audio src="song.mp3" controls="controls">
</audio>NOTE: supports mp3, wav and ogg formats
<embed src="file.wav" width=0 heigth=0> </embed>
<embed src="file.avi" width=300 height=300> </embed>
An example: