WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Link to PDF best practise

for

From: Rick Hill
Date: Feb 8, 2012 12:42PM


Ooops! My bad! Shouldn't send stuff off without proofing! Too much of a hurry this morning!

Yup, your example is what I would recommend. I also would remove the target=" _blank"

I suppose use of title is up to them but is not required.

Thanks for the input and correction!
–––––––––––––––––––––––––––––––––––––––
The chagrinned Rick

From: Jared Smith < <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >>
Reply-To: WebAIM Discussion List < <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >>
Date: Wed, 8 Feb 2012 10:03:56 -0700
To: WebAIM Discussion List < <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >>
Subject: Re: [WebAIM] Link to PDF best practise

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