I am designing a blog and this is the markup that I am using – showing just the article snippet as I am sure for the rest
<article>
<header>
<h2>this is the posts title</h2>
<footer>
<p>by aurel kurtula on <time>21:21pm</time></p> <ul><li>tag1</li><li>tag2</li><li>tag3</li></ul>
<footer>
<section>Here is the body of the article</section>
</article>
So my question is should I use footer in that way? and I am assuming that the <section> is right to used for the body of the article, or is it?
Thanks
I would say your structure is fine, as long as you are closing the
headertag which you don’t appear to be doing in the example code. Since:You should close the
headerafter yourh2:It may seem strange to use an element named
footerin the middle of thearticle, but there is nothing wrong with that:This means the
footerin question should apply to thearticleelement, not thesection. If for example you were to have multiplesectionelements perarticle, and each required a separatefooter, thosefooterelements should probably appear as descendants of their respectivesection.