Neova고급 SEO 플랫폼

HTML lang 값이 잘못됨

Neova에서는 크롤링 자체에서 실행됩니다. 따로 설정할 것이 없습니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 7월 7일

WCAG 3.1.1은 페이지에 유효한 언어를 요구하며, HTML 표준은 BCP 47 태그를 기대합니다. 값이 잘못되면 스크린 리더가 텍스트를 잘못된 발음으로 읽을 수 있습니다.

해 볼 수 있는 조치

값을 en이나 fr-CA 같은 유효한 언어 태그로 바꾸세요.

Neova가 찾는 방법

Neova는 크롤링하는 모든 페이지의 HTML을 읽고 이 문제를 찾습니다.

Neova가 플래그를 지정하는 이유

  • 언어 태그는 BCP 47(RFC 5646)을 따릅니다. 유효한 태그가 아닌 값은 브라우저와 스크린 리더에게 언어가 없는 것과 같습니다.
  • 그러면 스크린 리더가 잘못된 발음으로 텍스트를 읽을 수 있으며, 이는 WCAG 3.1.1을 충족하지 못합니다.
  • 흔한 실수는 밑줄(en_US), 국가 코드만 쓰기(영어에 uk), 지어낸 값입니다.

출처

작성하는 티켓

이 부분은 현재 영어로만 제공됩니다.

HT-022 · HTML Lang Value Is Invalid

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

What This Check Flags

This check fails when the <html> element has a lang attribute but its value is not a valid language tag — things like lang="english", lang="en-UK", or lang="us". The attribute is present, so it looks handled, but the value is garbage to a machine: screen readers cannot pick the right pronunciation engine, and browser translation and language detection get confused.

This is the trickier sibling of the missing-attribute problem. If the lang attribute is absent entirely, that is a different check — HTML Element Must Have a Lang Attribute. This one assumes you remembered the attribute but got the value wrong, which is arguably worse: a wrong value can actively mislead, where a missing one at least fails visibly.

A Real Failing Example, and the Fix

The values that fail are the ones that feel right to a human but do not follow the BCP 47 / ISO format machines expect:

<!-- All invalid -->
<html lang="english">      <!-- full name, not a code -->
<html lang="EN_US">        <!-- underscore; region uppercase but wrong sep -->
<html lang="en-UK">        <!-- "UK" is not the region code; it is GB -->
<html lang="us">           <!-- that's a country, not a language -->

The correct form is a two-letter ISO 639-1 language code, optionally followed by a hyphen and a two-letter ISO 3166-1 region code. Fix each of the above:

<html lang="en">           <!-- English -->
<html lang="en-US">        <!-- English, United States -->
<html lang="en-GB">        <!-- English, United Kingdom (GB, not UK) -->
<html lang="fr-FR">        <!-- French, France -->

Rules of thumb: use a hyphen, not an underscore; the language subtag is lowercase; the region subtag is uppercase; and the region is the ISO 3166 code, which is why the United Kingdom is GB even though the country's informal abbreviation is "UK."

Valid Codes vs. the Invalid Values That Mimic Them

This is where most failures come from — a plausible-looking value that is not actually a valid tag. Left column is what you meant; right column is the wrong version this check keeps catching:

Language / Locale Valid Value Common Invalid Value
English en english, eng, EN (case aside)
English (US) en-US en_US, en-us-1, us
English (UK) en-GB en-UK, en-uk
French fr french, fra, fr-FR-x
Spanish (Spain) es-ES es_ES, spanish, sp
Chinese (Simplified) zh-Hans chinese, zh-CN-simplified
Portuguese (Brazil) pt-BR pt_br, brazilian, br

Note zh-Hans: that middle part is a four-letter script subtag (ISO 15924), used when script matters more than region. It is valid — a reminder that "two-letter only" is the common case, not the whole rule.

How to Detect It

  1. Run an automated checker (axe, Lighthouse, WAVE). The rule "html element must have a valid lang attribute value" flags a present-but-malformed value distinctly from a missing one.
  2. View source and read the opening <html> tag. Eyeball the value for full words, underscores, or "UK" where "GB" belongs.
  3. Validate the tag against BCP 47 — the W3C internationalization language-tag checker confirms whether a value is well-formed and registered.
  4. Audit templated or CMS-generated pages, where a site setting like "English" may be written straight into lang instead of being mapped to en.
  5. Check per-page overrides. A multilingual site may set a valid site default but emit a bad value on translated templates.

How to Fix It

  1. Replace the value with a well-formed BCP 47 tag: lowercase ISO 639-1 language, optional uppercase ISO 3166-1 region, hyphen-separated.
  2. Swap full language names for codes (english → en) and underscores for hyphens (en_US → en-US).
  3. Correct region confusions — en-UK becomes en-GB; do not put a country name where a language belongs.
  4. Fix it at the source: if a CMS or theme setting generates the value, map the human-readable label to the correct code once, so every page inherits it.
  5. Re-run the validator to confirm the value is now recognized, and add a language subtag on any inline content that switches languages mid-page.

FAQ

How Is This Different From the "Must Have a Lang Attribute" Check?

That check fires when the attribute is missing; this one fires when it is present but invalid. Two distinct states: no attribute at all versus an attribute holding a value like english or en-UK that no parser recognizes. You can fail this one while technically "having" a lang attribute.

Why Is en-UK Wrong When Everyone Writes "UK"?

The region subtag uses ISO 3166-1 codes, and the code for the United Kingdom is GB, not UK. "UK" is a common informal abbreviation but is not the registered region code, so en-GB is the valid tag for British English.

Do I Need the Region Part at All?

No. A bare language code like en or fr is completely valid and often the right choice. Add a region subtag only when the locale genuinely matters — for pronunciation, spelling, or formatting differences between, say, en-US and en-GB.

Is Capitalization Enforced?

By convention the language subtag is lowercase and the region subtag is uppercase (en-US), and script subtags are title case (Hans). Tags are technically case-insensitive for matching, but following the convention avoids confusion and keeps validators and tooling happy.

Does an Invalid Lang Value Hurt SEO?

It is primarily an accessibility and localization issue — wrong pronunciation, broken browser translation. Google mostly infers page language from content rather than the lang attribute, but a correct value supports a clean multilingual setup. If you run multiple languages, pair it with proper hreflang implementation, and see the language attribute glossary entry for the fundamentals.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

글로벌 SEO 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기