ARIA Attribute Validator - Online Check HTML Accessibility
Paste an HTML snippet and check for common ARIA mistakes: missing labels, invalid roles, and aria‑hidden misuse. Educate your team.
UD5 Toolkit
Validate & parse BCP 47 language tags for your HTML lang attribute
| Tag | Language | Region |
|---|---|---|
en | English | - |
en-US | English | United States |
en-GB | English | United Kingdom |
zh-CN | Chinese | China |
zh-TW | Chinese | Taiwan |
zh-Hans | Chinese (Simplified) | - |
zh-Hant | Chinese (Traditional) | - |
fr-FR | French | France |
de-DE | German | Germany |
ja-JP | Japanese | Japan |
ko-KR | Korean | South Korea |
es-ES | Spanish | Spain |
es-MX | Spanish | Mexico |
pt-BR | Portuguese | Brazil |
pt-PT | Portuguese | Portugal |
it-IT | Italian | Italy |
ru-RU | Russian | Russia |
ar-SA | Arabic | Saudi Arabia |
hi-IN | Hindi | India |
nl-NL | Dutch | Netherlands |
sv-SE | Swedish | Sweden |
pl-PL | Polish | Poland |
tr-TR | Turkish | Turkey |
vi-VN | Vietnamese | Vietnam |
th-TH | Thai | Thailand |
id-ID | Indonesian | Indonesia |
ms-MY | Malay | Malaysia |
Click any tag to validate it instantly
lang attribute specifies the primary language of a webpage or a specific element. It helps search engines understand content language, improves accessibility for screen readers, and ensures proper text rendering. Using a valid BCP 47 language tag like en-US helps browsers apply correct hyphenation, font selection, and spelling dictionaries.
en, zh), optionally followed by a script subtag (4 letters, e.g., Hant), a region subtag (2 letters or 3 digits, e.g., US), and variant subtags. Examples: en-US, zh-Hant-CN.
lang attribute as a signal to determine the language of your content. Proper language tagging helps with geo-targeting, improves search result accuracy for multilingual queries, and can enhance your site's visibility in language-specific search results. It also supports proper hreflang implementation for multilingual websites.
lang attribute declares the language of the current page's content. The hreflang attribute (used in <link> tags or sitemaps) tells search engines about alternate language versions of a page. While both use BCP 47 tags, lang is for the current document, and hreflang points to other language versions. For example: <html lang="en-US"> vs <link rel="alternate" hreflang="es-MX" href="...">.
en-US (English - US), en-GB (English - UK), zh-CN (Chinese - China), fr-FR (French - France), de-DE (German - Germany), ja-JP (Japanese), es-ES (Spanish - Spain), pt-BR (Portuguese - Brazil), ar-SA (Arabic), and ru-RU (Russian). You can find a comprehensive list in the reference table on this page.
-) as separators, not underscores. For instance, en_US is invalid; the correct form is en-US. Using underscores is a common mistake inherited from programming language locale conventions (like en_US in Python or C). Always use hyphens for HTML lang attributes.
lang attribute on the <html> element for the primary language. For mixed-language content, add lang attributes to specific elements. Example: <html lang="en"> with <span lang="fr">Bonjour</span>. For separate language versions, use different URLs with proper hreflang annotations to help search engines serve the right version to users.
en (minimal), en-US (language + region), zh-Hant-CN (language + script + region). Tags are case-insensitive but conventionally use lowercase for language and uppercase for region.
Paste an HTML snippet and check for common ARIA mistakes: missing labels, invalid roles, and aria‑hidden misuse. Educate your team.
Paste JavaScript and catch syntax errors instantly with line numbers. Lightweight pre‑commit check. Local.
Paste a WebVTT file and instantly check for syntax errors. Validate timestamps and cue formatting. Essential for video devs.
Paste HTML snippet and highlight interactive elements missing accessible labels. Quick a11y audit.
Paste any DNS record and check if its format is valid for the selected record type (A, AAAA, CNAME, MX, TXT, SRV). Prevents typos.
Convert standard HTML into Pug (formerly Jade) syntax. Clean, indented output. For Node.js templating. Client‑side.
Enter a UPC or EAN barcode number and validate the check digit. See if it's a real product code. Local calculation.
Enter a URL and fetch its Twitter card meta tags. See a live preview of how the tweet will appear. Debug social sharing.
Send conditional requests to a URL and verify that the server correctly handles ETag and If‑None‑Match. Audit caching.
Validate a DNSSEC chain by entering DS and RRSIG records. Verify that signatures match. Educational. Local algorithm.
Test the new HTML popover attribute for creating accessible tooltips, menus, and dialogs without JavaScript. Copy code snippets.
Build a complex mailto: link with to, cc, bcc, subject, and body. Get the HTML anchor tag. Local.
Paste HTML and instantly remove all tags, leaving only the text content. Optional keep line breaks. Quick cleaning.
Validate ISBN‑10 and ISBN‑13 numbers and compute their check digits. Useful for booksellers and libraries. All local.
Type raw HTML and see the escaped version, then see how it renders when unescaped. Understand encoding better.
Create a customizable scrolling marquee banner. Copy the HTML and CSS. For retro web projects or fun.
Paste CSV and get a beautiful HTML table with sortable headers (optional). Copy the full HTML/CSS snippet. Local.
Paste an HTML `<table>` snippet and instantly get a clean Markdown table. Supports colspan and alignment hints. Local.
Check if an IBAN has the correct length and structure for its country. Early validation, no bank connection.
Paste a test card number to verify Luhn algorithm, identify issuer (Visa, MC), and check length. No real data.
Paste lines of text and automatically convert to an HTML ordered list with correct numbering and indentation.
Validate if a version string follows SemVer 2.0.0. Also sort and compare versions. Developer tool.
Reduce your HTML file size by stripping whitespace, comments, and optional closing tags. Secure browser‑based.
Paste Markdown and get warnings for common mistakes: inconsistent heading spacing, bare URLs, and broken links. All local.
Paste a robots.txt file and validate its syntax. See if a specific user‑agent can access a path. Essential for webmasters.
Paste a string and verify if it is valid Base64. Auto‑detects padding issues and character errors. Quick dev check.
Paste multiple HTML snippets (header, footer) and a main content, then combine them into a single preview. Static site helper.
Paste a list of numbers to visually check uniformity, mean, and simple pattern analysis. Educational tool for statistics and RNG.
Strip HTML tags and convert web content to plain Markdown. Preserve headings, lists, and links. Perfect for content migration. All processing in browser.
Write or paste HTML, CSS, and JavaScript and instantly see the rendered output in a sandboxed iframe. A handy frontend prototyping tool.