What improvements to accessibility are offered by HTML5?

前端 未结 4 443
生来不讨喜
生来不讨喜 2021-02-04 07:26

What benefits are offered by HTML5 over HTML 4.01 or XHTML 1.0 Strict for accessibility?

4条回答
  •  伪装坚强ぢ
    2021-02-04 07:55

    Let me say "hear, hear" to Alohci and provide a bit further detail:

    One must remember that to browsers and assistive technologies there is but one HTML (except for MSIE 8). That means that a new version of the standard in itself does not mean anything, until implementations support the features. E.g. the longdesc attribute has been part of HTML 4 for more than 10 years, but has zero support, and is thus not usable at all.

    Potential benefits in the HTML 5 standard are:

    • New elements that can make skip-links redundant. Since these new elements are less crufty than ARIA landmarks, that also have this power, they are likely to see more adoption. I.e. Authors might not realize that they are making a page more accessible, they just want to use the best available tags. User agents may use these new elements to facilitate easier navigation, and that can be a benefit to more people than the blind.
    • For a number of uses where accessibility can not be built in, but has to be bolt on, ARIA is available. Just the other day the first edit was made to the draft to include ARIA!
    • Video and audio, SVG and Canvas can be used in ways that will help people with cognitive disabilities. (At the moment the best way of integrating SVG in plain HTML is still being debated, though.)

    There are still matters that are unsolved though:

    • Captioning for video. So far the only option is JavaScript, a rather ugly bolt on solution that is very unlikely to see high adoption rates. OTOH, how many videos on Youtube are captioned today?
    • Screen reader accessible content from Canvas objects. The beauty of Canvas is that it has no DOM, but that is also is main shortcoming. There is no solution for everybody in this regard. What if you'd implement Tetris, Pacman or Doom using Canvas? These games will always be inaccessible to a screen reader user due to their very nature. Bespin, OTOH, should be made accessible to them.

    SVG has a DOM and can thus be seen as a screen reader friendly alternative, but currently there is little support implemented in them.

    There are some minor debates still going on as well, such as:

    • Is it preferable to make the alt attribute optional, in the hope of reducing badly written alt-texts, or to keep it required, in the hope of forcing content contributors to write good alt-texts?
    • Should the summary attribute be allowed and seen as the best alternative to describe complex tables, where caption, th, thead, tbody, tfooter and headers/id are not enough?

    In one corner we have people mainly associated with the original WHAT WG effort, that are building their argument on the fact that today's usage of these features is abysmal. When they are used, most authors get them wrong. One should not have high hopes that education will work any better in the future. I call this group elitistic but pessimistic.

    In the other corner we have the accessibility (and lately also the RDFa-lovers), that are building their case on expertise in the subject area. They are aware of the huge potential benefits there are in correct usage of accessibility features. They are optimistic about education efforts, but might come across as a bit fanatical in their reasoning.

    Beyond the debate HTML 5 will mean that to knowledgeable authors 99 % of their accessibility toolbox is still usable, and they have a few more tools to use, but also a few more challenges to overcome. ‘plus ça change, plus c'est la même chose’

提交回复
热议问题