Design comparison
SolutionDesign
Community feedback
- @0xabdulkhaliqPosted 6 months ago
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.
IMPROPER USAGE OF ALT 📸:
- The alt text "user 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.
- A more appropriate alt text could describe the specific content or function of the avatar, such as "Benjamin's profile picture for social media" or "Avatar representing Benjamin for social link." 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 this case the image is a portrait of yourself right ? So thealt
needs to be your firstname/fullname itself
- E.g.
alt="Benjamin"
<img class="..." src="..." alt="Benjamin">
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
0@Benjihunt97Posted 6 months ago@0xabdulkhalid thanks, and I know about the alt, in real word projects I'd make them more specific, but for such a simple design I don't focus much on those. But thanks anyway
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord