WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Can <span> & <div> be considered Semantic or non-semantic elements

for

From: Patrick H. Lauke
Date: Jul 6, 2016 4:21AM


On 06/07/2016 07:25, Ravindra Kumar Jain wrote:
> Hi folks,
> a lot has already been written about <span> & <div> elements. We all
> know that on one hand its correct use can solve accessibility problems
> & on the other hand it's wrong use can do just the reverse.
> Considering the above , Just like a<h1> , <table> & other recently
> introduced Html 5 elements , can or should <span> & <div> be
> considered as Semantic elements ?

Not quite sure where this question is leading to, but...

By definition, <span> and <div> are semantically neutral containers.
Unless they're given explicit role, behavior, etc yes they'll be
problematic.

In the same way "semantic" elements, when used incorrectly, can also be
problematic.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke