Shouldn't we use the <main> element anymore?

Like most of my SO questions, this one is related to my inability to find the latest Google results.

Almost 3 years have passed since it <main>was adopted in the HTML5.1 specification. It seems to make sense to use:

<header></header>
<main></main>
<footer></footer>

But I see many sites with semantics support (such as CanIUse and CSS-Tricks ) that simply ignore the element, instead using something like:

<header></header>
<div class="main-wrapper">
    <!--no ARIA role, nothing to semantically indicate "main" content-->
</div>
<footer></footer>

I feel like I missed some conversation about how everyone should stop using <main>and Google is not helping me find this conversation. Was the item deemed unnecessary (that is, customers never actually analyze it)?

, IE , ( polyfill), - , ? , , div.main-wrapper , IE. <main>, 1- JS- display:block?

+5
3

. main , /, , .

, , main , .

, , , . , , W3C , , , / , , . .

+3

( )?

, IE, / (role = main) , Edge. 3 - ( , , ). ( grep http://webdevdata.org, ).

.

63% // / ( , Ill ). -

+3

I think this is a chicken / egg. There isn’t much point in using it on sites if customers don’t do anything special with it. And there is nothing special in the fact that some customers do something with it if acceptance is low. And I would suggest that the problem does not cause enough pain for most users and developers.

+1
source

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


All Articles