What Happens If a Hyper Link Points to a PDF File

Q

What Happens If a Hyper Link Points to a PDF File? - XHTML 1.0 Tutorials - Understanding Hyper Links and URLs

✍: FYIcenter.com

A

If you want to build a hyper link to allow visitors to access a PDF file by clicking a hyper link, you can put the URL of the PDF file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch the PDF file, and launch Adobe Reader to display it for you automatically.

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

  <p>Click the hyper link to read the 
  <a href="http://www.w3.org/TR/xhtml1/xhtml1.pdf"
   >PDF 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 read the PDF File provided by www.w3.org.

2007-05-12, 5088👍, 0💬