jargon

Frontend & browser·Accessibility and semantics

you gave the icon-only button a name in an attribute because there was no visible text to use.

aria-label

An attribute supplying an accessible name directly as a string. It is right for controls with no visible text, and it overrides the element's own content, which means it can silently replace a perfectly good label. It is invisible to sighted users and untranslated by page translation in some paths, so visible text remains the better answer whenever there is room for it.

Commonly confused with