Using WAI-ARIA support

Visual Studio 2012 fully supports the Web Accessibility Initiative-Accessible Rich Internet Applications (WAI-ARIA ) standard, making it easier for us to create accessible websites. This is the Accessible Rich Internet Applications suite that provides a way to make web content and apps more accessible through this framework, and this in turn allows us to add attributes for identifying features regarding accessibility. Basically, ARIA is a set of semantic tags and attributes that identify features regarding accessibility in user interaction, how they relate to each other, and their state.

Getting ready

In order to use this recipe you should have Visual Studio 2012.

How to do it...

Here we will see how to use Visual Studio 2012's support for WAI-ARIA:

  1. Open our previous ASP.NET Application or create a new one.
  2. Open the Site.Master page.
  3. Go to the <nav> element.
  4. Press Ctrl + the Space bar.
  5. We will be able to see all the WAI-ARIA attributes, which are prefixed with the aria- prefix, as we can see in the following screenshot:
    How to do it...
  6. Now it is extremely easy to add the necessary semantics to our HTML5 document.

How it works...

It is really easy to add the WAI-ARIA attributes using the Visual Studio 2012 intelli-sense feature, which automatically recognizes them.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset