The markup required by the jQuery UI tabs is similar to the following ...
<ul> <li>Tab1</li> <li>Tab2</li> <li>Tab3</li> </ul> <div> Panel 1 </div> <div> Panel 2 </div> <div> Panel 3 </div>
This is good enough in some cases, but in other cases where SEO and usability are top priorities, this markup is no better. I would have jQuery UI working tabs with the following markup ...
<div id="tabs"> <div class="panel"> <h3>Tab1</h3> Panel content 1 </div> <div class="panel"> <h3>Tab2</h3> Panel content 2 </div> <div class="panel"> <h3>Tab3</h3> Panel content 3 </div> </div>
Is it possible?
I found here ( http://christianyates.com/blog/semantic-tabs/semantic-tabs-jquery ) another plugin that solves this problem, but I would use the jQuery UI Tabs plugin.
source share