Demystifying accessibility in Web apps - Part 1

ranjanakash166

AKASH RANJAN

Posted on September 1, 2024

Demystifying accessibility in Web apps - Part 1

Introduction to Web accessibility

  • Web pages get rendered when HTML is parsed by the browser and it in turn forms the DOM tree out of which browser builds visual UI which we can see and interact

Rendering of the UI

  • However, it does not end there in parallel it also builds an accessibility tree containing all of the important accessibility information

  • Which then gets exposed to assistive technology like a screen reader and is used to navigate the page

Accessibility Tree

  • Let us take an example for a given HTML page below the accessibility tree will look as shown in the adjacent image

  • Each element in accessibility tree has role (type of element and it’s purpose), accessible name, additionally it will contain lot of other attributes

Image description

  • So use of sematic elements are recommended to have best accessibility practices

Image description

  • In modern UI native element might not be enough so in those cases we can use ARIA

ARIA : accessible rich internet application

Image description

Image description

We will Deep dive more into use of ARIA in part-2

💖 💪 🙅 🚩
ranjanakash166
AKASH RANJAN

Posted on September 1, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related