MAIN Landmark
Definition |
A main landmark identifies the primary content of the page.
|
---|---|
ARIA Specification |
main landmark
|
Coding Patterns |
|
Techniques |
|
Headings |
|
One Main Landmark
HTML5 main
element technique
<main>
<h1>title for main content<h1>
.... main content....
</main>
<h1>title for main content<h1>
.... main content....
</main>
[role="main"]
attribute technqiue
<div role="main">
<h1>title for main content<h1>
.... main content....
</div>
<h1>title for main content<h1>
.... main content....
</div>
Multiple Main Landmarks
<main aria-labelledby="title1">
<h1 id="title1">title for main content 1<h1>
.... main content....
</main>
....
<main aria-labelledby="title2">
<h1 id="title2">title for main content 2<h1>
.... main content....
</main>
<h1 id="title1">title for main content 1<h1>
.... main content....
</main>
....
<main aria-labelledby="title2">
<h1 id="title2">title for main content 2<h1>
.... main content....
</main>