Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Multimedia the Old-Fashioned Way

The simplest and most reliable option for incorporating a video or audio file into your Web site is to simply link it in with <a href>, exactly as you would link to another HTML file. (See Hour 3, "Linking to Other Web Pages," for coverage of the <a> tag.)

For example, the following line could be used to offer an AVI video of a Maine lobster:

<a href="lobstah.avi">Play the lobster video.</a>

When the user clicks the words Play the lobster video, the lobstah.avi video file is transferred to her computer. Whichever helper application or plug-in she has installed automatically starts as soon as the file has finished downloading. If no AVI-compatible helper or plug-in can be found, the Web browser offers her a chance to download the appropriate plug-in or save the video on the hard drive for later viewing.

Share ThisShare This

Informit Network