Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

CHAPTER 7: Adding Links > Link to Another File Type

Link to Another File Type

You can add links to non-HTML resources, such as PDF files, spreadsheet files, image files, compressed files, and more. To make such files web accessible, you must store them in the same locations on the web server as your HTML files. Then you can reference them with a URL just as you do an HTML page.

Thanks to special plug-ins, some web browsers can open certain non-HTML files. For a file that it cannot open, a browser may prompt users to save the file on their computers.

Link to Another File Type

  1. image Type the text for the link.

    It is good form to include a description on the page that identifies what type of file the link opens.

    image

  2. image Type <a href="?">, replacing ? with the relative path and name of the file.
  3. image Type </a> at the end of the link text.

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial