I'm interested to learn more about the relationship, and possible distinctions, between the HTML5 <main>
element, and the ARIA landmark role attribute role="main"
.
I'm under the impression that the purpose of the <main>
element is to map the ARIA roll attribute role="main"
onto a specific HTML element. But does that sum it up?
Are there benefits to using <main>
over, say, <div role="main">
? Or will these, for now and the foreseeable future, yield the same result?
Any insights in comparing the following examples would be greatly appreciated:
<body>
<main>
<p>Paragraph</p>
<main>
</body>
<body>
<main role="main">
<p>Paragraph</p>
<main>
</body>
<body>
<div role="main">
<p>Paragraph</p>
<div>
</body>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…