Hyper Link Points to a PDF File

Q

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

✍: 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.

 

HTML Hyper Links and URLs

⇒⇒HTML Tutorials

2017-07-03, 298👍, 0💬