On the use of HTML5 aria-* and role in Bootstrap __html

Source: Internet
Author: User
HTML5 aria-* and role

In the bootstrap see role and aria-*, do not know what to do. Google, find aria means accessible Rich Internet application. Accessible is generally a function for inconvenient people, such as Windows Magnifier, voice reading, high-contrast themes, and so on.

HTML5 attributes added to HTML tag: role and aria-*.

Role is to describe the actual role of a nonstandard tag. For example, with a div button, then set the div role= "button", the auxiliary tool can recognize this is actually a button.

ARIA Roles

Use the ' ARIA role ' to indicate the ' a generic tag is playing ' role of ' a ' standard widget like a button.

And aria-* 's role is to describe this tag in the visual context of the specific information. Like what

<div role= "checkbox" aria-checked= "Checked" ></div>

The auxiliary tool will know that this div is actually a checkbox's role and is selected.

ADD ARIA for screen readers

ARIA attributes provides semantic information to screen readers this is normally conveyed.

Note This using ARIA does not automatically implement the standard widget behavior, and you'll still need to add focus Managem ENT and keyboard navigation yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.