Linking to a PDF file
Creating a link to a PDF file is the same as linking to any other document. Just include the filename in the URL, as shown in this example:
<a href="documentation.pdf">Link to documentation (PDF)</a>
The PDF file resides on the server like any other media file. Most modern server software is preconfigured to recognize the PDF MIME type (type application/pdf
, extension .pdf).
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.