|
We live in a world dominated by audio-visual media. Movies, television, radio, CDs, videos, DVDs, video games, and, yes, the Internet are all a part of our media culture. As a result, the temptation to at least experiment with audio and video to your Web pages may be too great to resist. However, keep in mind that audio and video can drastically slow down your pages. If you are merely creating a personal Web site for your own use and enjoyment, then don’t worry about it. Be creative and have a blast! On the other hand, if you are creating your site for business purposes, or if you are working as a Web developer for other people’s sites, consider carefully whether audio-visual media will genuinely contribute to the site. If its only reason for being there is that it looks “cool,” you may be better off leaving it out. In any case, here’s a summary of how to add audio and video files to your Web pages:
To Do This | Use This |
---|---|
Link to an external | <a href="audioFile.wav">Link</a> |
Link to an external | <a href="videoFile.avi">Link</a> |
Embed an audio file | <object data="audioFile.wav" type="audio/wav" |
Embed an audio file | <bgsound src="/books/4/238/1/html/2/audioFile.wav" loop="#" />
|
Embed an audio file |
<embed src="/books/4/238/1/html/2/audioFile.wav" autostart="false" (or true)
|
Embed a video file | <img dynsrc="/books/4/238/1/html/2/videoFile.avi" /> |
Embed a video file |
<object data="videoFile.avi" type="video/avi" |
Embed a video file |
<embed src="/books/4/238/1/html/2/videoFile.avi" |
|