Search code examples
htmlvalidationaccessibility

Total Validator doesn't find skip link


Total Validator doesn't find this link and write this warning to me:

Add a skip navigation link as the first link on the page.

How can I write this link in a better way?

<html>
<body>
<a href="#skip">Skip to Content</a>
navbar with menu 
<div id="skip">
</div>
</body>
</html>

Solution

  • From what I have tested, they do require the text link to contain the word "skip", and the href attribute to start with a #, no matter if this element exists.

    With the code you have submitted, it works with my own installation of TotalValidator (I am not saying that I would use this tool).

    For information, TotalValidator web site uses the following code

    <div id="skip"><a href="#content">Skip navigation</a></div>
    
    [...]
    
    <a id="content"></a>