In such a situation, you can use WAI-ARIA role attributes to provide your own roles. Sometimes, however, you need to use some non-semantic markup (e.g., div s) to build a complex custom control, and the control won’t have a default role that reflects its purpose. Semantic DOM elements have roles assigned to them by default that hint at what their purpose is. Here we are mainly talking about exposing information to people with visual disabilities - this is done via the accessibility APIs available inside web browsers, which expose information on what roles the different elements on your page play (e.g., are they just text, or are they buttons, links, form elements, etc.?). You can find more extensive information in the Accessibility section of MDN Web Docs. This means trying your best to not lock anyone out of accessing information because of any disability they may have, or any other personal circumstances such as the device they are using, the speed of their network connection, or their geographic location or locale. Getting Set Up To Work On The Firefox CodebaseĪccessibility is the practice of making your websites usable by as many people as possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |