Yeah yeah I see, thanks! Good to know there’s a way to make screen readers ignore something.
I think the “hate” on using divs is more from using a div when there is a semantic element that is better to use.
Eg: <div role=“navigation”> vs <nav>
So using div isn’t a no-no, it’s just a last-resort if there isn’t a semantic element for the use case. This is in contrast to what may have been a trend of excessive use of divs.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yeah yeah I see, thanks! Good to know there’s a way to make screen readers ignore something.
I think the “hate” on using divs is more from using a div when there is a semantic element that is better to use.
Eg:
<div role=“navigation”>
vs<nav>
So using div isn’t a no-no, it’s just a last-resort if there isn’t a semantic element for the use case. This is in contrast to what may have been a trend of excessive use of divs.