[html5] microdata and the dl element

Brian Tremblay webmaster at tsmchughs.com
Sat May 19 21:35:53 PDT 2012


I've marked up a restaurant menu using the <dl> element, with a <dt> for 
each item, followed by 2 or more <dd> elements, one for price, 
description, and, where appropriate, additional options.

I want to add microdata product markup (http://schema.org/Product) but 
can't find a way to do it. It seems like I need a wrapper for each menu 
item, which I sort of think should be there anyways. Can such a thing be 
added to html5? Perhaps <dli>, like so:

<dl>
  <dli>
   <dt>Artichoke Hearts Au Gratin</dt>
   <dd>$6.50</dd>
   <dd>baked artichoke hearts, with Irish soda bread</dd>
  </dli>
  <dli>
   <dt>Peel & Eat Shrimp</dt>
   <dd>$7.50</dd>
   <dd>half pound of chilled shrimp with cocktail sauce</dd>
  </dli>
</dl>

Barring the addition of a new element to be nested inside <dl>, the only 
solution I can see is to make each item its own description list, but 
that would be grossly abusive. (Does one item really constitute a list?

Menu url:

http://www.tsmchughs.com/menus/dinner

Any ideas?

-- 
Brian Tremblay



More information about the Help mailing list