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
divstrongabbr class=published updated
title=2007-12-04T00:00:00-08:00December 04,
2007/abbr/strong/div
div id=hcard-Associated-Press class=vcard
span class=fn nAssociated Press/span
/div
divWASHINGTON, D.C./div
div class=entry-contentCongress is set to consider an
strongEnergy 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-titleEnergyBill/h2
divstrongabbr class=published updated
title=2007-12-04T00:00:00-08:00December 04,
2007/abbr/strong/div
div id=hcard-Associated-Press class=vcard
div class=fn orgAssociated Press/div
div class=adrspan class=localityWASHINGTON/span,
abbr class=region title=District of ColumbiaD.C./span/div
/div
div class=entry-contentCongress is set to consider an
strongEnergy 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