This attribute is useful when you want to reference an element that provides a label but semantically, it is not a <label> HTML element. There’s one caveat when using it and that is, when clicking on the element that is meant to work like a label, it will not focus on an input.

Example

<div id="userLabel">Name</div>  
<input aria-labelledby="userLabel" type="text" />