Closed kettanaito closed 7 years ago
It should be also discussed whether we really need to nest div class="container">
inside <main>
.
What about instances when nested content has fluid container? Maybe it is better to define container in each block
macro extension?
This depends on project. IMHO this is quite easy task and we don’t need to show best practice here.
@janpanschab then I will create a pull request with the changes I currently have.
The current usage:
Remove "container" class
I would not recommend using bootstrap's
container
class on the root node of page content. Suggesting to nest it inside the<main>
tag:Remove
role="main"
There is a great tool for HTML5 proper markup validation. When uploaded our
index.html
we get a following error:I think this is because there can be only one
<main>
tag in the whole document. ARIA specification attributes were provided before roles were natively supported by HTML5.Usage of HTML5 markup should be supported, since it is not even a new feature as for 2016.