On Apr 30, 2008, at 4:08 PM, Suzy Loew wrote:
I've been tasked with converting some of our content with
microformats. I've already successfully worked with hCard to my
satisfaction, but now I'm attempting a hAtom entry. I'm still new to
this, but I would like your opinion of the following conversion for
our Guide Note located here: http://www.mahalo.com/2007_Energy_Bill
<div class="hentry" title="Energy Bill">
<div><strong><abbr class="published updated"
title="2007-12-04T00:00:00-08:00">December 04,
2007</abbr></strong></div>
<div id="hcard-Associated-Press" class="vcard">
<span class="fn n">Associated Press</span>
</div>
<div>WASHINGTON, D.C.</div>
<div class="entry-content">Congress is set to consider an
<strong>Energy Bill</strong> called the Energy Independence and
Security Act of 2007. The act's stated purpose is ...</div>
</div>
I feel it has all the required elements of an hatom, but I'm wondering
if this is properly formatted. Specifically for denoting the title of
the article, which I put in the initial hentry div.
Hi Suzy,
Here's how I would suggest doing this:
<div class="hentry">
<h2 class="entry-title">EnergyBill</h2>
<div><strong><abbr class="published updated"
title="2007-12-04T00:00:00-08:00">December 04,
2007</abbr></strong></div>
<div id="hcard-Associated-Press" class="vcard">
<div class="fn org">Associated Press</div>
<div class="adr"><span class="locality">WASHINGTON</span>,
<abbr class="region" title="District of Columbia">D.C.</span></div>
</div>
<div class="entry-content">Congress is set to consider an
<strong>Energy Bill</strong> called the Energy Independence and
Security Act of 2007. The act's stated purpose is ...</div>
</div>
What I changed:
- Moved the title from a title attribute (I don't believe that means
what you're trying to say) to an element with class="entry-title"
- Changed class="fn n" to class="fn org", because it's an organization
- Wrapped class="adr" around the address information for the hCard,
and moved that within the hCard
If any of this doesn't make sense, please let us know.
Peace,
Scott
_______________________________________________
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss