ButtonsLesson 114Free preview
Text Buttons
This lesson is part of How To · All levels
Summary
A text button is a button that appears like regular text without a background or border. This style is created by removing the background and the border, then adding color and padding to it. The text button is suitable for light action, but should remain visible via hover and focus state.
Key points
- Delete the background and border so that the button looks like text.
- Always use the button element to maintain semantics and accessibility.
- Give a hover like a bottom line or a change of color.
- The focus-visible must be there because without the border the button is easily invisible when focused.
- Avoid text buttons for major actions that require strong emphasis.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.