Léonie Watson (@LeonieWatson) explains the difference between
aria-labelledbyattributes are both used to give an element it’s accessible name. The difference between
aria-labelledbyis where they get that piece of text, and the clue is in the name. The
aria-labelattribute gives an element its label; an element with the
aria-labelledbyattribute is labelled by something else.
But don’t go adding of them everywhere, as you might not need ARIA (see The First Rule of ARIA) 😉