WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Link to PDF best practise

for

From: Vincent Young
Date: Feb 8, 2012 12:36PM


I would just use images with appropriate title/alt:

<strong>File Title:</strong>
<a href="http://www.PDF.com">
<img src="pdf.jpg" title="PDF" alt="File Title: PDF" />
</a>
<a href="http://www.DOC.com">
<img src="doc.jpg" title="DOC" alt="File Title: DOC" />
</a>

if you don't have images, I'd probably just hide the title for each
off-screen:

<strong>File Title:</strong>
<a href="http://www.PDF.com">
<span class="ada-hide">File Title</span>
<strong>PDF</strong>
</a>
<a href="http://www.DOC.com">
<span class="ada-hide">File Title</span>
<strong>DOC</strong>
</a>



On Wed, Feb 8, 2012 at 10:52 AM, Rick Hill < <EMAIL REMOVED> > wrote:

> Hmmm… any suggestions for instances where they have more than one file
> format linked?
>
> <li>
> Social and Behavioral Full Committee Review Application Form (
> <a class="internal-link"
> href="d/irb/Application_SBE_FullBoard12.5.11LT.doc">DOC</a>
> |
> <a class="internal-link"
> href="d/irb/Application_SBE_FullBoard12.5.11LT.rtf">RTF</a>
> )
> </li>
>
> –––––––––––––––––––––––––––––––––––––––
> 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
>