Buttons require careful consideration for accessibility. Use semantic HTML `<button>` elements instead of `<div>` or links to ensure proper keyboard navigation and screen reader support. Add `aria-label` or visually-hidden text for icon-only buttons, use `aria-pressed` to convey toggle states, and choose between `disabled` and
Table of contents
The screen reader and keyboard experienceButtons aren’t linksButtons aren’t <div> ’sPrevent buttons from submitting formsIcons in buttonsA .visually-hidden classButton StateDisabling buttonsPicking the right tool for the job5 Comments
Sort: