Navigation

sample webpage with horizontal menu in header sample webpage with horizontal menu in header
Figure 1 Example of notification that appears on successful submission of email id for subscribing

Navigation consists of links that help users to jump to other pages of the website. Hence, it is necessary to define them in the same way and order across all pages of the website.

  • The location of these links should be implemented to be convenient to access for all users.
  • These links SHOULD have unique and descriptive link text.
  • Link text MUST have sufficient color contrast with its background.
    • Minimum requirement of 4.5:1 MUST be met for the standard text size.
    • Minimum requirement of 3:1 MUST be met for links having larger text size i.e., 14pts with bold weight or more than 18 pts.
  • If image links are used, they SHOULD meet the color contrast ratio requirement of 3:1 with the background color in different states.
  • The contrast requirement of 3:1 ratio MUST be met with the adjacent colors for the custom focus indicator of the links.
  • Navigation region SHOULD be defined for the menu.

NOTE:

  • New to accessibility or uncertain of requirements, it will be helpful to review all sections below.
  • Already familiar with requirements, skip to the “Working Example” section for sample HTML, CSS and JavaScript (when needed), along with a working demo.