Hamburger button

From WikiMD's Food, Medicine & Wellness Encyclopedia

Hamburger button, often symbolized as three parallel horizontal lines resembling a hamburger, is a graphical user interface element used by web developers and designers to hide the navigation elements within applications or websites. Its design aims to provide a minimalist and efficient way to access menus, especially on devices with smaller screens, such as smartphones and tablets. The hamburger button has become a standard component of mobile user interface design, although its use and effectiveness are subjects of ongoing debate among designers.

Origin and Design[edit | edit source]

The origin of the hamburger button dates back to the 1980s, attributed to Norm Cox, a designer for the Xerox Star, one of the earliest graphical user interfaces. Cox designed the icon to be simple and functionally memorable, intending it to resemble a conventional menu list. Despite its early origins, the hamburger button did not gain widespread popularity until the advent of mobile computing, where screen space became a premium.

Functionality[edit | edit source]

The primary function of the hamburger button is to toggle the visibility of a site or application's navigation menu. When a user interacts with the button, typically by tapping or clicking, it either slides out a menu from the side of the screen or overlays the menu on top of existing content. This allows for a cleaner and more unobstructed view of the primary content until navigation is required.

Criticism and Alternatives[edit | edit source]

Despite its widespread adoption, the hamburger button has faced criticism from usability experts and designers. Critics argue that it hides important navigation links, making them less discoverable and potentially harming user experience. It is also suggested that the icon itself is not universally understood to represent a menu, leading to confusion among some users.

Alternatives to the hamburger button include tab bars, which are always visible and provide direct access to top-level navigation options, and "priority+" menus, which display the most important navigation options as visible buttons, relegating less critical links to a secondary menu.

Implementation[edit | edit source]

In web development, the hamburger button is typically implemented using HTML, CSS, and JavaScript. The button is created as an HTML element, styled with CSS to achieve the iconic appearance, and made interactive through JavaScript, which controls the menu's visibility.

Accessibility[edit | edit source]

Ensuring the accessibility of the hamburger menu is crucial. This includes providing appropriate aria-labels for screen readers, ensuring the menu can be navigated using keyboard shortcuts, and maintaining focus within the menu when it is open.

See Also[edit | edit source]

References[edit | edit source]


Wiki.png

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD


Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD is not a substitute for professional medical advice. See full disclaimer.

Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD