Re:Tailwind CSS v3.0
by jolux on Thursday December 09, 2021 @03:54PM
(#29502795)
I believe there are accessibility problems with using divs and spans where a more semantic element would suffice.
[ Parent
| on HN ]
Re:Tailwind CSS v3.0
by seanwilson on Thursday December 09, 2021 @03:58PM
(#29502851)
Yes, you should always be using the elements/tags with the most semantic meaning you can. When you need to add divs, spans and classes for styling reasons though, they're going to be ignored by screen readers so there's no problem here.