2026-04-27 14:51 UTC
The instructions for a[role="button"], button, and a[role="button"]:visited seem to cover pretty much everything you need if for whatever reason you want a link to be treated as a button. (And please use role="button" instead of anything class-based since that will cause it to work for users of screen-readers as well!)
#Webdev #html #css
Replies (1)
-
@iamdtms@mas.to 2026-04-27 15:12
@Fiona `[type=submit], [type=reset] `also a button but `button `targets as well 👍