@bbsmoothdev
Posted
I'm going to give you a different perspective on the image alt text. I would say that the first image should have empty alt text since it is purely a decorative image and doesn't add any information that a screen reader user would need to know. So it should be alt=""
.
Whether the image of the person is decorative is up to debate. But if you do think it needs a description then it should probably describe what the person looks like, not just say "avatar". But I think in this case it would be just as reasonable to give it empty alt text as well.
Alt text for images is very important when the image is conveying important information, especially if that information can't be found elsewhere on the page. But when an image is purely decorative then adding alt text to it is actually an annoying hindrance for screen reader users.
@CyberLime
Posted
@bbsmoothdev Thanks for the advice