Bad value binding for attribute role on nav element

I get this error in the W3C Validation. I am using HTML5 doctype<!DOCTYPE html>

Displays the null value for the attribute role on the nav element.

for

<nav class="pagination" role="pagination">

Does anyone know how to solve this or what is the reason for this? Does W3V Validator ARIA support?

+4
source share
1 answer

As validator says that paginationis a bad value for an element nav, you can use navigationinstead, Check the code below and see for yourself.

<!DOCTYPE html>
<html lang="en">
   <head>
       <title>Test</title>
       <meta charset="utf-8">
   </head>
   <body>
      <nav role="navigation"> </nav>
   </body>
</html>

enter image description here

From w3org

, ARIA, , , HTML5 , ARIA role = "navigation" .

+4

All Articles