HTML Accessibility Tools

HTML Language Attribute Checker

If <html lang> is missing, a screen reader set to English will attempt to read Spanish or French pages with English phonetic rules—or vice versa.

Your files and content are processed locally in your browser. We do not upload your files to our servers.

What This Tool Does

  • Detects missing or empty lang attributes on the root <html> element.
  • Validates tag format against standard BCP 47 syntax (e.g., en, en-US, fr, es-MX).

Who Should Use It

  • Web developers
  • Internationalization (i18n) engineers

How to Use HTML Language Attribute Checker

  1. Paste full HTML document markup to inspect the root lang attribute.

Accessibility Principles & Technical Methodology

WCAG 3.1.1 requires the default page language on <html>, while WCAG 3.1.2 covers inline foreign phrases via lang on <span> or <blockquote>.

Technical Methodology

Checks documentElement.getAttribute('lang') and validates BCP 47 pattern.

Practical Examples

Valid Root Tag

<html lang="en">

Relevant WCAG 2.2 Criteria

  • 3.1.1 Language of Page (A)
  • 3.1.2 Language of Parts (AA)
Explore WCAG 2.2 Guide

Common Mistakes to Avoid

  • Using lang='english' instead of ISO code lang='en'.

HTML Language Attribute Checker — FAQs

Both are valid BCP 47 tags. Use 'en-US' or 'en-GB' if regional pronunciation or spelling matters.
HTML Structure

HTML Accessibility Checker

Comprehensive local HTML audit with DOM structural checks, optional axe-core scan, and before/after preview.

Open tool
HTML Structure

Semantic HTML Checker

Spot clickable <div> elements, missing landmarks, and non-semantic markup patterns.

Open tool
HTML Structure

Heading Structure Checker

Visualize H1–H6 document outline hierarchy and catch skipped or empty headings.

Open tool
HTML Structure

H1-H6 Hierarchy Validator

Validate strict sequential H1–H6 nesting and catch empty or out-of-order headings.

Open tool
HTML Structure

Link Accessibility Checker

Audit <a> links for descriptive names, empty links, and placeholder href anti-patterns.

Open tool
HTML Structure

Empty Link Detector

Locate icon-only or blank <a> links that fail screen reader announcements.

Open tool