17
loading...
This website collects cookies to deliver better user experience
<html>
tag, and this is the first place for an appropriate accessibility setting. Using the lang
attribute, it is possible to specify the language for the whole document, which the screen reader will use in order to determine which language to use for speech. The second element close to the beginning of the HTML document is the <title>
tag, which contains the title of the current document. It is read by the screen reader when first loading the webpage.[Tab]
key or one step backward by pressing the [Shift+Tab]
key combination. Each step made like this will focus on the next or previous interactive element, like links, buttons, form controls, etc. The screen reader will then announce the currently focused element using its node type and additional metadata.<main>
, <nav>
, <header>
. And also, as with heading navigation, this technique allows quicker access to the desired parts of the page while also allowing quick skipping of unwanted content. With this type of navigation, it is important to utilize the available native HTML5 elements with their semantic meaning while structuring the document instead of using <div>
elements everywhere.aria-label
, which directly attaches the text content to the element that should be used for this element description. For example, when you have an icon button (hamburger menu) it will not have natural text content available.id
and aria-describedby
, which together creates a relation where one element's content describes the other element. Another commonly used attribute, role
, makes it possible to specify for the screen reader the functional purpose of that element. There is also one common but yet special attribute, aria-hidden
, which instead of adding information to the screen reader, removes it and all its children in the HTML tree. This serves the purpose of hiding elements that do not provide valuable information.