Why this wireframe works | Labeled hamburger button
Words next to the three lines say it is the menu button
The three-line icon is widely used, but some people still cannot tell what it does. The word “Menu” sits under the three lines (inside the same button on desktop).
A frame makes it look pressable
An icon made of lines alone can be hard to tell apart from decoration. The whole button is framed, so the pressable area is clear at a glance.
While open, it becomes an × and “Close”
If the button looks the same, nothing says that pressing it again closes the menu. While the menu is open, the three lines become an ×, the word becomes “Close”, and the button is filled to make the change of state obvious.
The visible words match the name read aloud
Giving an icon only an aria-label can make what is shown and what is read aloud drift apart. The words “Menu” and “Close” inside the button serve as its name, and aria-expanded shows the open state too.
Common mistakes when building it
A bare three-line icon with no name
An icon-only button without a name is read out by screen readers as just “button”. Add visible words, or give it a name such as “Menu” with aria-label.
A small button that gets confused with the logo or the contact button
A small icon at the right end of the header leads to mistaps on the button next to it. Make it at least 44px and leave space between it and neighboring buttons.
The button looks the same whether open or closed
If the state does not change, people cannot tell whether the menu is open or whether pressing again will close it. Change the icon and the words, and switch the aria-expanded value too.
Using a word the readers are not familiar with
A stylized label can look smart, but it does not reach everyone. Choose a word that suits the site’s readers, such as “Menu”.
Frequently asked questions
Should the label be in the site’s language or in English, such as MENU?
Choose to suit the site’s readers. On sites with a wide range of ages, or sites mainly in one local language, a word in that language is easier to understand. If you use the English word for style on a site in another language, keep the name read aloud in the site’s language.
Isn’t the three-line icon understood by everyone by now?
Most people understand it, but not everyone does. Adding a word rarely gets in the way visually, so if being understood comes first, it is safer to add one.
Should the three lines animate into an ×?
Animating it makes it easier to see that the same button closes the menu. Keep the motion short, and for people who use the reduced-motion setting, skip the motion and just switch the display.









