What is the web best practice for user avatar alt text? Blank? Something like "user avatar"?

@russsaidwords hmm.. yeah I suppose. Except it would seem to duplicate actual text content in most cases where the user's name is displayed nearby. But role="presentation" doesn't seem right.

@deutrino As @aardrian always says, it really depends on the context: is it side by side with the user name? Then empty alt. If the user name is not close to it, then consider adding the user name as alt.

Also, if your CSS is advanced enough to add the avatar as a background image to an empty element, case closed.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!