WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Link to PDF best practise

for

From: Jared Smith
Date: Feb 8, 2012 10:18AM


I think you may have made a mistake in your code. Your "better"
example presents a totally empty link. This would always be an issue.
The best presentation would be:

<a class="internal-link" title="SPO_DataSheetInstructions.pdf"
href="../pgc/d/spo/SPO_DataSheetInstructions.pdf">Data Sheet
Instructions and certifications (PDF)</a>

This provides both the content of the link and the file type within
the link text.

Note that I removed the target="_blank" attribute. It's always rather
annoying to me when such links open a new window because my system
(and I think most systems these days) are set to handle PDF files in
external programs (not within the browser window). Having
target="_blank" results in an empty window that must then be closed by
the user.

Jared