Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Making a File Available for Downloading

Many Web authors want to know how to make a file that isn't a Web page available for downloading from a Web site. A zip archive and an .exe program are good examples of such files.

Just upload the file to your Web site, following the instructions in this hour for uploading. Create a link to the file on one of your Web pages, as explained in Hour 3. For example, if the file were called neatgame.zip, the link would look like this:

<a href="neatgame.zip">Click here to download a neat game i wrote.</a>

You might want to put a reminder somewhere near the link telling people that the easiest way to download the file is to right-click (or, if you're a Macintosh user, hold down the mouse button) on the link and select Save Link As from the pop-up menu. (It also works fine if people just click the link normally.)

Remember that some Web host services charge by the number of bytes sent out, so if 10,000 people a day download a 2,000,000-byte file from your site, it might start costing you some serious money and overburden your Web server.

Share ThisShare This

Informit Network