Thinking in terms of accessibility, described by the WAI-ARIA , you need to define the element with the main content of the page with role="main"
, in order to improve page accessibility for users with assistive technologies.
For example:
<html>
...
<body>
...
<div role="main">
Conteúdo principal da página
</div>
...
</body>
</html>
However, HTML5 already defines a main
element.
My question is, if I replace the above code with this code below, will the assistive tools be able to provide the same functionality? Semantically, <div role="main">
is equal to <main>
? That is, does <main>
have% implicit%?
<html>
...
<body>
...
<main>
Conteúdo principal da página
</main>
...
</body>
</html>