Missing Lang Attribute on Paragraph Tags Enclosing Content Parts
WCAG Focus: WCAG 3.1.2 (AA)
When an English WordPress article quotes a paragraph or phrase in Spanish, French, or German without wrapping it in a matching lang attribute, screen readers attempt to pronounce foreign words using English pronunciation rules.
Why This Pattern Violates WCAG
WCAG 3.1.2 Language of Parts (Level AA) requires the human language of each passage or phrase in the content to be programmatically determinable via lang="…" (except for proper names, technical terms, or words adopted into the primary language).
Code Comparison
Unmarked Foreign-Language Passage
<p>The official welcome reads: Bienvenidos a nuestro sitio web accesible.</p>
Compliant Inline Lang Attribute
<p>The official welcome reads: <span lang="es">Bienvenidos a nuestro sitio web accesible.</span></p>
How to Fix It in WordPress
- Wrap foreign-language quotes or paragraphs in <span lang="…"> or <p lang="…"> using valid BCP 47 codes (e.g., es, fr, de).
- In Gutenberg, switch to Edit as HTML for that block to add lang="…" cleanly.
Finding This Issue Automatically
Multilingual quotes and translated notices buried in blog archives are easy to miss during manual QA. The WP ADA Compliance Check plugin detects passages written in a different language lacking inline lang attributes so screen readers switch voices seamlessly.
WCAG References & Supporting Materials
WCAG Success Criteria
Supporting Documentation & Guides
- W3C Technique H58: Using language attributes for changes in human language — Marking inline or paragraph language shifts with lang="…" under WCAG 3.1.2.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

