I am customizing WordPress sidebars for an HTML5 theme and really want to use before_widget and after_widget .
So my question is: which of the two markup templates is more appropriate? The following code is completely outside the <article> element.
Option 1: In addition to sections
<aside id="sidebar"> <section id="widget_1"></section> <section id="widget_2"></section> <section id="widget_3"></section> </aside>
Option 2: Div with Asides
<div id="sidebar"> <aside id="widget_1"></aside> <aside id="widget_1"></aside > <aside id="widget_1"></aside > </div>
I suppose the helper question is what should be used for each widget title. If I pack each widget into <section> , then <h1> seems to be the most suitable. If I use <aside> , I am not sure.
All opinions are welcome. Devil's lawyers are encouraged.
html5 semantic-markup
mrwweb Dec 06 '11 at 10:27 2011-12-06 22:27
source share