@anoshaahmed
Posted
Hey I see that you tried to use the role attribute. The purpose of role is to tell a screen reader what the purpose of a div
is because a div doesn't have a name. If you are using header
, main
, footer
, then you don't need to give them a role because their name says it all. Body does not have the role of main, main is.
Here's a link to something I wrote about accessibility issues & best practices
Hope this helps :)
Marked as helpful
@abdoachhoubi
Posted
@anoshaahmed Thank's so much, you've been really helpful. Before yesterday I had no idea what the role attribute is used for. But thanks to you and some other seniors I learned a lot!