10

When a user's avatar is not available, and they're listed in the Top Network Askers in the right sidebar of https://stackexchange.com/, the alt text of the avatar overlaps the username or site name in some browsers:

enter image description here enter image description here
(left: Chrome, right: Firefox, both on macOS Catalina)

2

1 Answer 1

2

We're not supposed to have alt text on the avatars. It causes all sorts of issues in all sorts of browsing configurations, because that's not what alt text is for. Specifically, we should have alt="" set on them. See the Web Accessibility Initiative guidance:

Decorative images don’t add information to the content of a page. For example, the information provided by the image might already be given using adjacent text, or the image might be included to make the website more visually attractive.

In these cases, a null (empty) alt text should be provided (alt="") so that they can be ignored by assistive technologies, such as screen readers.

User profile pages, and the hover cards, are a different case: people sometimes discuss profile pictures, so it would be nice to be able to provide alt text for that case. But that would be a .

"wizzwizz4's user avatar" is not acceptable in any case.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .