title | layout | description | permalink | page_title | sidenav |
---|---|---|---|---|---|
Web Text Properties |
post |
How we deal with web text properties |
/accessibility/properties/ |
Web text properties |
accessibility |
Having the HTML properties of your website set properly ensures assitive technology interacts with your site correctly. AT will read foreign languages, but they need to know when the language differs from the page's default.
- Open the inspector panel.
- Locate the main
html
tag.
- If the
lang
attribute isn't set to the correct language, this is a failure.
- Identify any content that differs from the default language, make sure the content has its own
lang
attribute set with that language.
- Any alternate language content not set constitues a failure.
Sus ojos son verdes.
This text is Spanish and lacks a
lang
attribute.
Sus ojos son verdes.
This text passes because the
lang="es"
attribute identifies its content as Spanish.