Links to Non-HTML Content Such as Mailto, PDF, and MS Word Documents
WCAG Focus: WCAG 2.4.4 (A), 3.2.5 (AAA)
Clicking a link that unexpectedly downloads a 12MB PDF, launches Microsoft Word, or opens a desktop email client via mailto: can catch users off guard—especially screen reader or mobile visitors whose browser focus shifts abruptly to another application.
Why This Pattern Violates WCAG
WCAG 2.4.4 Link Purpose (Level A) and usability best practices call for transparent link labels that warn visitors when a link leads to a non-HTML format or triggers an external protocol.
Indicating the document format (e.g., "(PDF)") lets assistive technology users decide before triggering a download or application switch.
Code Comparison
Inaccessible Unmarked Document & Email Links
<a href="/files/annual-report.pdf">Annual Report</a>
<a href="mailto:[email protected]">Support</a>
Compliant Marked Non-HTML Links
<a href="/files/annual-report.pdf">Annual Report (PDF, 420 KB)</a>
<a href="mailto:[email protected]">Email Support ([email protected])</a>
How to Fix It in WordPress
- Append document types and file sizes inside the link text for PDF, DOCX, XLSX, and ZIP downloads.
- Label mailto: links clearly as email actions, and ensure linked PDFs themselves are properly tagged for accessibility.
Finding This Issue Automatically
With years of uploaded brochures, forms, and staff mailto: links stored in your WordPress Media Library, finding unmarked document links manually is tedious. The WP ADA Compliance Check plugin automatically fixes this issue by notifying users when a link opens PDF documents or other non-HTML content.
WCAG References & Supporting Materials
WCAG Success Criteria
- Understanding WCAG 2.4.4 Link Purpose (In Context) (Level A)
- Understanding WCAG 3.2.5 Change on Request (Level AAA)
Supporting Documentation & Guides
- W3C Technique G200: Opening new windows and tabs only when necessary — Limiting new-window links and warning users when links open externally or in non-HTML formats.
- W3C Technique H30: Providing link text that describes the purpose of a link — Giving every anchor text or linked image alt text that states its destination.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

