Courses / HTML
77. role Attribute
Defines the role of an element to assistive technologies.
1 min read Chapter 77 of 102
HTML
role Attribute
The role attribute helps assistive technologies understand the purpose of an HTML element.
"I want my web content to be accessible to everyone, including those using screen readers."
The role attribute specifies the role or purpose of an element, improving accessibility for users with assistive technologies.
"I want my web content to be accessible to everyone, including those using screen readers."
The role attribute specifies the role or purpose of an element, improving accessibility for users with assistive technologies.