For a listing of events, I was planning on using the HTML5 Address in the markup to show search engines this is a location. I will be displaying 5 upcoming events on the homepage.
Do I put this inside a section or article?
When I read the HTML5 specification it confuses me, if anybody could explain how to use this better.
Updated with code from Steve:
<ul>
<li>
<h3><a href="<?php echo $event['href']; ?>" title="<?php echo $event['title']; ?>"><?php echo $event['title']; ?></a></h3>
<p><?php echo $event['description']; ?>
<span class="datetime">When: <time datetime="<?php echo $event['start_date']; ?>" pubdate="pubdate"><?php echo date('d-m-Y', strtotime($event['start_date'])); ?></time></span>
<span class="location">Where: <address><?php echo $event['location']; ?></address></span></p>
</li>
I am sorry to say, but in this context you are misusing the
<address>tag. It is meant to provide contact information for the author(s) of the document, not for arbitrary addresses.The spec: http://dev.w3.org/html5/spec/sections.html#the-address-element
A helpful article: http://html5doctor.com/the-address-element/