This technique uses the hidden attribute to hide the button text: The hidden attribute is a boolean attribute. I have a button and the only content is a Font-Awesome (font-icon) in it. In this technique, aria-labelledby will reference the of the SVG as the accessible label: VoiceOver will announce Menu, Button, and the devtools will once again indicate that the accessible name of the button was provided by its content (the icon’s label inside the element): You’ve already noticed that I used SVG to embed the icon in the buttons in this article. What are expectations? This is a button! I’ve used different labels here for demonstration purposes only. However, if you navigate to each button using the Tab key and hit Enter to process them, you will only see the first message, belonging to the native button.To make the non-native button process the keyboard input, you also need to define a keypress event handler separately: Not only do HTML <button> s have some suitable styling applied by default (which you will probably want to override), they also have built-in keyboard accessibility — users can navigate between buttons using the Tab key and activate their selection using Return or Enter. Every HTML element must be used for the purpose it is designed for. . In a longer one, looking for a submit button that isn't there right away can be annoying. The easiest way to create a button link is probably to handle it with a little bit of Javascript. There are a few ways to hide content visually. Unlike aria-labelledby which references another element to use as a label, aria-label takes a string of text as a value, and that string will be used as the accessible name for the element it is used on. Others have little or no use of their hands, or no hands at all. UI controls are the part of a web page that users interact with. This post is about icon-only buttons. Found inside – Page 63See accessibility guidelines history resources, HTML 4btw See also browsers; ... HTML 306–308; radio buttons, HTML 298–299; Reset button, HTML 304–305; ... The icon itself can be used to create a label to the button, but making sure that the button itself has an accessible label. It is worth noting that this is also is one of the best ways to make an inline svg image(s) accessible. Articles on travel, productivity, life, and more. Anchors, Buttons, and Accessibility. But who would want to create a brittle implementation of features that are provided to them by default by the browser when they can save both time and effort using a simple