Navigation Menubar Example
- -About This Example
-Caution!
-Before considering use of the Menubar Pattern for site navigation, it is important to understand:
--
-
- The
menubarpattern requires complex functionality that is unnecessary for typical site navigation that is styled to look like a menubar with expandable sections orfly outs
.
- - - A pattern more suited for typical site navigation with expandable groups of links is the Disclosure Pattern. - For an example, see Example Disclosure Navigation Menu. - -
- The following implementation of the Menubar Pattern demonstrates how a menubar can provide navigation menus.
- The parent menu items in the menubar represent a section of a mythical university web site and open a submenu containing menu items that link to pages within that section.
- The navigation system it illustrates is comparable to the navigation illustrated in the
- Example Disclosure Navigation Menu.
- As noted above, the disclosure pattern is better suited for most web sites because few sites need the additional keyboard functionality required to support the ARIA menubar and menu roles.
-
Similar examples include:
--
-
- Editor Menubar Example: Example of a menubar that presents text styling actions similar to an editor application. -
- Example Disclosure Navigation Menu: Navigation menus implemented as simple drop down lists of links that are shown and hidden using disclosure buttons. -
- Example Disclosure Navigation Menu with Top-Level Links -