Hamburger button

From WikiMD's medical 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

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

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

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

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

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

References


Stub icon
   This article is a computer science stub. You can help WikiMD by expanding it!



Hamburger button gallery

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

Transform your life with W8MD's budget GLP-1 injections from $125.

W8mdlogo.png
W8MD weight loss doctors team

W8MD offers a medical weight loss program to lose weight in Philadelphia. Our physician-supervised medical weight loss provides:

NYC weight loss doctor appointments

Start your NYC weight loss journey today at our NYC medical weight loss and Philadelphia medical weight loss clinics.

Linkedin_Shiny_Icon Facebook_Shiny_Icon YouTube_icon_(2011-2013) Google plus


Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD