@0xabdulkhaliq
Posted
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
ANCHOR ELEMENT 🔴:
- Those social images are need to links which redirects to respected sites, So those images needs to be wrapped with
<a>
elements which must want to havearia-label
attribute, It's important for social links in an<a>
tag can help provide more context to users with visual impairments who use assistive technologies such as screen readers to access your website.
- When a screen reader encounters an anchor tag with a social link, it may announce the link's text content, such as "Facebook" or "Twitter," by including an
aria-label
attribute that points to a nearby element containing a description of the link's purpose, you can provide more context and clarity to the user.
- By providing this additional information, you can help users with visual impairments to better understand the purpose and value of social links, and encourage them to engage with your content. This can ultimately improve the user experience on your website, and make it more accessible and inclusive for all users.
- Example:
<a href="#" aria-label="Facebook profile of Huddle">
<img src="images/icon_facebook.png" alt="Facebook Icon" draggable="false">
</a>
- If you have any questions or need further clarification, you can always check out
my submission
and/or feel free to reach out to me.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful
@VHugo632
Posted
@0xAbdulKhalid
Hi !
Thanks a lot for your answer !
Normally, I use <a> tags for social networks. It's just that in this case, I didn't think about it at all, given that the exercise is mainly intended for the visual aspect :)
But now, thanks to your advice, I'll be more careful !
Thank you !