@0xabdulkhalid
Posted
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have a suggestion regarding your code that I believe will be of great interest to you.
USING ALT EFFECTIVELY :
- The alt text "Giovanna's photo" is somewhat vague and not descriptive enough.
- It fails to adequately convey the content or purpose of the image, which is essential for accessibility and user experience. Because the screen readers will read out the image's
alt
like ''A picture of Giovanna's photo". So you don't want to add words like "photo", "picture" because accessibility devices will automatically add the word "picture" or "photo" by default.
- A more appropriate alt text could describe the specific content or function of the avatar, such as "Giovanna's for social media". This would provide clearer information to users who rely on screen readers or encounter image loading issues.
- The
alt
attribute should explain the purpose of theimage
, in our case the image is a portrait of yourself right ? then alt would be your name itself.
- E.g.
alt="Giovanna"
<img src="assets/images/avatar-giovanna.jpg" alt="Giovanna">
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful
@LagoGiovanna
Posted
@0xabdulkhalid Wow! This was really helpfull. I can see now how "alt" works. Thanks!!