Document and parts language
type: TechArticle
description: Set the page's primary language on and mark any inline content in a different language with its own lang attribute, so screen readers pronounce it correctly.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-05-29T09:13:20.000Z
citation: WCAG 3.1.1 — Language of Page (Level A)
  type: CreativeWork
  publisher: W3C
citation: WCAG 3.1.2 — Language of Parts (Level AA)
  type: CreativeWork
  publisher: W3C
citation: Accessibility Checker — Missing Language Declaration
  type: CreativeWork
  publisher: Equalize Digital
citation: MDN — The lang global attribute
  type: CreativeWork
  publisher: MDN

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Accessibility
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/accessibility/
item list element: Document and parts language
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/accessibility/document-language/