DEV Community

Discussion on: One of the Most Common Web Accessibility Mistakes

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

The fact that the documentation recommends using <span> as the outermost parent is another issue. It's not valid HTML to put block-level elements like <div>s inside a <span>. A span may only accept phrasing content as children.

Collapse
 
perpetual_education profile image
perpetual . education • Edited

It's true! <i> is dead too. And all those div? Gotta be something semantic to use...