Open In App

What is the aria-labelledby attribute ?

The aria-labelledby attribute is an inherent attribute in hypertext markup language that’s wont to produce relationships between objects and there labels. Once any component containing each the attribute aria-labelledby and aria-label attribute the browsers high priority are going to be aria-labelledby with none doubt. This aria-labelledby attribute may be used with any typical hypertext markup language kind element. It is not restricted to components however aria-label attribute we must always watch out whereas victimization aria-label because it doesn’t work with all HTML elements.

Syntax:



<element aria-labelledby =""> Content </element>

Parameters: A space-separated list of all the element IDs.

Following are some of the list of all the popular usage of aria-labelledby attribute:




Article Tags :