Avatars are visual representations of users, entities, or objects. They provide a quick way to identify individuals and add personality to interfaces through images, initials, or icons.
Any time you use an image to communicate a concept, it's important to use descriptive alt text. This is essential for accessibility because it allows screen readers to describe what's in the image to people who may not be able to see it.
alt="Sarah Johnson"
Good: Person's name when used standalone
alt=""
Good: Empty alt when name appears as text