--- url: "https://web.dev/learn/accessibility/more-html" titulek: "The Document | web.dev" h1: "The Document Stay organized with collections Save and categorize content based on your preferences." popis: "Additional HTML elements to consider when building accessible websites and web apps." jazyk: "en" kanonicka: "https://web.dev/learn/accessibility/more-html" drobecky: ["web.dev", "Resources", "Accessibility"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:41:34" znaku: 6509 slov: 918 kodovani: "iso-8859-2" sha256: "b7ac73e6fd6117e33286dac60b045d789376335e5b03fed2162c3937d7dbb92f" --- The Document Stay organized with collections Save and categorize content based on your preferences. Along with structure, there are many supporting HTML elements to consider when building and designing for digital accessibility. Throughout the Learn Accessibility course, we cover a lot of elements. This module focuses on very specific elements that don't quite fit into any of the other modules but are useful to understand. Page title The HTML [``](https://developer.mozilla.org/docs/Web/HTML/Element/title) element defines the content of the page or screen a user is about to experience. It's found in the [`<head>`](https://developer.mozilla.org/docs/Web/HTML/Element/head) section of an HTML document and is equivalent to the `<h1>` or main topic of the page. The title content is displayed in the browser tab and helps users understand which page they are visiting, but it is not displayed on the website or app itself. In a [single-page app](https://developer.mozilla.org/docs/Glossary/SPA) (SPA), the `<title>` is handled in a slightly different way, as users don't navigate between pages as they do on multi-page websites. For SPAs, the value of the [`document.title`](https://developer.mozilla.org/docs/Web/API/Document/title) property can be added manually or by a helper package, depending on the JavaScript framework. Announcing the [updated page titles](https://hidde.blog/accessible-page-titles-in-a-single-page-app/) to a screen reader user may take some additional work. Descriptive page titles are good for both users and [search engine optimization (SEO)](https://developer.mozilla.org/docs/Web/HTML/Element/title#page_titles_and_seo)—but don't go overboard and add lots of keywords. Since the title is the first thing announced when an AT user visits a page, it must be accurate, unique, and descriptive, but also concise. When writing page titles, it is also best practice to "front load" the interior page or important content first, then add any preceding pages or information after. This way, AT users don't have to sit through the information they have already heard. Don't <title>The Food Channel | Outrageous Pumpkins | Season 3 Do Season 3 | Outrageous Pumpkins | The Food Channel Language Page language The page language attribute ([`lang`](https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang)) sets the default language for the entire page. This attribute is added to the [``](https://developer.mozilla.org/docs/Web/HTML/Element/html) tag. A valid language attribute should be added to every page as it signals the AT to which language it should use. It's recommended that you use two-character [ISO language codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for greater AT coverage, as many of them do not support [extended language codes](https://webaim.org/techniques/language/). When a language attribute is completely missing, the AT will default to the user's programmed language. For example, if an AT was set to Spanish, but a user visited an English website or app, the AT would try to read the English text with Spanish accents and cadence. This combination results in an unusable digital product and a frustrated user. Don't ... Do ... The lang attribute can only have one language associated with it. This means the `` attribute can only have one language, even if there are multiple languages on the page. Set `lang` to the primary language of the page. Don't ... Multiple languages are not supported. Do ... Set only the page's primary language. In this case, the language is Arabic. Section language You can also use the language attribute ([lang](https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang)) for language switches in the content itself. The same basic rules apply as the full-page language attribute, except you add it to the appropriate in-page element instead of on the `` tag. Remember that the language you add to the `` element cascades down to all the contained elements, so always set the primary language of the page top-level `lang` attribute first. For any in-page elements written in a different language, add that `lang` attribute to the appropriate wrapper element. This will override the top-level language setting until that element is closed. Don't ...

While traveling in Estonia this summer, I often asked, "Kas sa räägid inglise keelt?" when I met someone new.

Do ...

While traveling in Estonia this summer, I often asked, "Kas sa räägid inglise keelt?" when I met someone new.

iFrames The iFrame element ([` Do [Previous arrow_back Content structure](/learn/accessibility/structure) [Next Keyboard focus arrow_forward](/learn/accessibility/focus) Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2022-10-31 UTC.