Content sliders, like bxslider or Bootstrap's carousel, use div
s to define slides. This is great for images and many other elements but it doesn't make much sense for things like lists or tables (and probably more).
List example #1:
<div><!--slider container-->
<ul>
<div class="active"><!--currently shown slide-->
<li>Blah</li>
<li>Blah</li>
<li>Blah</li>
</div>
<div><!--another slide-->
<li>Blah</li>
<li>Blah</li>
</div>
</ul>
</div>
This is not valid.
List example #2:
<div><!--slider container-->
<div class="active"><!--currently shown slide-->
<ul>
<li>Blah</li>
<li>Blah</li>
<li>Blah</li>
</ul>
</div>
<div><!--another slide-->
<ul>
<li>Blah</li>
<li>Blah</li>
</ul>
</div>
</div>
This is valid but just does not make sense, is poor from an accessibility point of view, and so on.
Is there a right way of spreading tables, lists, etc. across multiple slides?
Is there a way of creating a content slider using the valid markup for a table/list?*
Perhaps HTML5 brings something to the table which could help (but I doubt it).
* Reason for the CSS tag