Default font size Increase font size  |   Decrease font size   |  
Skip to main content

Success Criterion 2.4.1 Bypass Blocks: [Level A]

The intent of this Success Criterion is to allow people who navigate sequentially through content more direct access to the primary content of the Web page. Web pages and applications often have content that appears on other pages or screens. Examples of repeated blocks of content include but are not limited to navigation links, heading graphics, and advertising frames. Small repeated sections such as individual words, phrases or single links are not considered blocks for the purposes of this provision.

Techniques

Adding links to skip content

A link can be added at the top of the page which skips any blocks of content which may well be of no interest to the user. An example of this can be seen in these pages with the 'Skip to main content' link. In this instance it skips over the menus at the top and places the user at the start of the main content "Success Criteria 2.4.1 Bypass Blocks: ...... ".

If there are several blocks that can be potentially skipped, a link can be placed at the start of each block and each 'click', this includes the 'keydown' event, proceeds to the next link and so on until the final target is arrived at.

If the page has several areas of content independant of each other, links can be provided at the top of the page to navigate to each of these sections as required.

Each section which the links can navigate to should start with a heading element and it is to this element that the link should point.

Using map to group links

When a screen reader comes across a navigation menu it would normally read the text of each link in that menu. To avoid this and allow the user to skip the menu, the links can be grouped using the map element allowing the screen reader to jump over the links.

<map title="Navigation Bar"> 
    <ul>
        <li><a href="principlePerceivable.html">Principle 1</a></li>
        <li><a href="principleOperable.html">Principle 2</a></li>
        <li><a href="principleUnderstandable.html">Principle 3</a></li>
        <li><a href="principleRobust.html">Principle 4</a></li>
    </ul>	
</map>

Using collapsible menus

JavaScript can be used to toggle a menu alternately hiding it and showing it. When the CSS style property display:none is set, that block of HTML will not be available.

$('#togglenavbar').click(function() {
    $('#navbar').toggle();
});
...
<a href="#" id="togglenavbar">Toggle Navigation Bar</a>      
<ul id="navbar">    
    <li><a href="http://target1.html">Link 1</a></li>    
    <li><a href="http://target2.html">Link 2</a></li>    
    <li><a href="http://target3.html">Link 3</a></li>    
    <li><a href="http://target4.html">Link 4</a></li>    
</ul>

Toggle Navigation Bar

Failures

No failures currently documented

Top