WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Empty tags (divs, p and strong) in the code?

for

From: Bryan Garaventa
Date: Aug 17, 2012 11:07AM


I agree, it's best to use comprehensive structural markup before resorting
to ARIA to modify feedback.

That said, you can use both role=presentation and aria-hidden on a
particular element without harm, especially since it has no content anyway.
Even so, it's probably best to remove it or convert it to a plain static
element like a div or span.