Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index

XHTML Tutorial - Hyper Link Points to a ZIP File

By: FYIcenter.com

(Continued from previous topic...)

What Happens If a Hyper Link Points to a ZIP File?

If you want to build a hyper link to allow visitors to access a ZIP file by clicking a hyper link, you can put the URL of the ZIP file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch the PDF file, and display a dialog box to ask you to save the file to your local computer.

The tutorial example below shows you how ZIP files can be linked by hyper links:

  <p>Click the hyper link to save the 
  <a href="http://www.w3.org/TR/xhtml1/xhtml1.zip"
   >ZIP File</a> provided by www.w3.org.</p>

The above code is included below in this document, so you can try it now.

Click the hyper link to save the ZIP File provided by www.w3.org.

(Continued on next topic...)

  1. What Are Hyper Links?
  2. What Is an Anchor "a" Tag/Element?
  3. How To Define a Hyper Link?
  4. How To Define a Bookmark?
  5. What Is a URL?
  6. What Is the Structure of a URL?
  7. What Happens If Protocol or Port Number Is Missing in a URL?
  8. What Happens If a URL Starts with Path or File name?
  9. What Is a Relative Path Name?
  10. What Happens If File Name is Missing in a URL?
  11. How To Build Hyper Link Indexes within the Same Document?
  12. What Happens If a Hyper Link Points to an Image?
  13. What Happens If a Hyper Link Points to a Music File?
  14. What Happens If a Hyper Link Points to a PDF File?
  15. What Happens If a Hyper Link Points to a ZIP File?
  16. How To Create A Link to Open a Document in a New Window?


Selected Developer Jobs:

More...