Что такое HTML5 ARIA?

Что такое HTML5 ARIA? Я не понимаю, как это реализовать.

243
задан Subbu 1 May 2012 в 21:20
поделиться

2 ответа

WAI-ARIA is a spec defining support for accessible web apps. It defines bunch of markup extensions (mostly as attributes on HTML5 elements), which can be used by the web app developer to provide additional information about the semantics of the various elements to assistive technologies like screen readers. Of course, for ARIA to work, the HTTP user agent that interprets the markup needs to support ARIA, but the spec is created in such a way, as to allow down-level user agents to ignore the ARIA-specific markup safely without affecting the web app's functionality.

Here's an example from the ARIA spec:

<ul role="menubar">

  <!-- Rule 2A: "File" label via aria-labelledby -->
  <li role="menuitem" aria-haspopup="true" aria-labelledby="fileLabel"><span id="fileLabel">File</span>
    <ul role="menu">

      <!-- Rule 2C: "New" label via Namefrom:contents -->
      <li role="menuitem" aria-haspopup="false">New</li>
      <li role="menuitem" aria-haspopup="false">Open…</li>
      ...
    </ul>
  </li>
  ...
</ul>

Note the role attribute on the outer

    element. This attribute does not affect in any way how the markup is rendered on the screen by the browser; however, browsers that support ARIA will add OS-specific accessibility information to the rendered UI element, so that the screen reader can interpret it as a menu and read it aloud with enough context for the end-user to understand (for example, an explicit "menu" audio hint) and is able to interact with it (for example, voice navigation).

210
ответ дан 23 November 2019 в 03:10
поделиться

ARIA расшифровывается как доступные полнофункциональные Интернет-приложения.

WAI-ARIA - это невероятно мощная технология, которая позволяет разработчикам легко описывать назначение, состояние и другие функции визуально насыщенных пользовательских интерфейсов способом, понятным для вспомогательных технологий. WAI-ARIA наконец-то интегрирован в текущий рабочий проект спецификации HTML 5.

И если вам интересно, что такое WAI-ARIA, это то же самое.

Обратите внимание, что термины WAI-ARIA и ARIA относятся к одному и тому же. Однако правильнее использовать WAI-ARIA для подтверждения своего происхождения в WAI.

WAI = Инициатива веб-доступности

Судя по всему, ARIA используется для вспомогательных технологий и в основном для чтения с экрана.

Большинство ваших сомнений развеется, если вы прочтете эту статью

http://www.w3.org/TR/aria-in-html/

58
ответ дан 23 November 2019 в 03:10
поделиться
Другие вопросы по тегам:

Похожие вопросы: