element? It seems unnecessary to use the ARIA benchmark if the standard element is the most un...">

Is the role = "primary" necessary for the <main> element?

It seems unnecessary to use the ARIA benchmark if the standard element is the most understandable and affordable way to determine the main section of your content <main>. Does it add role="main"to the element that is really needed?

+2
source share
2 answers

Not all modern browsers have already matched aria-role mainwith an element <main>(so far they only displayed Firefox 21+ and Chrome 26+). When the entire browser will support this function, the attribute role="main"can be discarded, but at the same time it is better to use it.

Sources:

http://html5doctor.com/the-main-element/#comment-35495 ( ) http://html5doctor.com/the-main-element/#comment-36407 ( )

+4

, , "".

:

1. , , , , .

:

<a href="#" role="button" aria-label="Delete item 1">Delete</a>

, , .

( ), CSS, class-itis div-itis.

*[role="button"] {
  /* style these a buttons w/o relying on a .button class */
}

Reson 2. , ARIA, .

, "" , HTML5, .

<main role="main"></main>

, . , , .

...

- (WAI-ARIA) 1.0

+2

Source: https://habr.com/ru/post/1533643/


All Articles