I have insert a menu in my index:
<nav id="mainmenu" class="navbar navbar-default" role="navigation">
But when I try to validate it (in local) the validator.w3 tell me:
Warning: Element nav does not need a role attribute.
I can't find a solution, can someone help me?
Delete role="navigation"
.
The <nav>
element already has the semantics of being for navigation. You don't need to add them with the role
attribute. Saying "This navigation element is for navigation" is redundant and silly.
<nav id="mainmenu" class="navbar navbar-default">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With