role Attribute
The role attribute comes from the WAI-ARIA specification and assigns an HTML element a semantic role that assistive technologies such as screen readers can recognise – particularly important for non-semantic elements like div or span.
In practice
Wherever possible, prefer a native HTML element: a real