Hi All,
I’m learning semantic HTML and trying to figure out which element should be used after <body>
element to wrap all the child semantic elements ?
I’m doing as below
<div class="grid-container">
can I replace div
with main
here as wrapper element for all ?
Are there any rules for semantic elements like which can be child and which can’t also other good practices ?
As HTML is not strict and doesn’t complain about any mistakes done wrt semantic elements usage, but for SEO, Accessibility I would like to follow best practices.
Thanks,
Vikram