Using the button role – Accessibility | MDN

The button role should be used for clickable elements that trigger a response when activated by the user. On its own, role=”button” can make any element (e.g. p, span or div) appears as a button control to a screen reader. Additionally, this role can be used in combination with the aria-pressed attribute in order to create toggle buttons.

Curated by (Lifekludger)
Read full article at Source: Using the button role – Accessibility | MDN

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: