jeaux
08-18-2008, 02:00 PM
I'm doing a menu for a restaurant and needed some PHP help earlier. Twey the moderator of the forum brought to my attention that it would be more proper to place my menu inside of a table.
This is the format that I'm currently using.
<h2 class ="menu-category">TAPAS FRIAS</h2>
<dl>
<dt>Ensalada de Pollo</dt>
<dd class ="price">$5.95</dd>
<dd class ="ingredients">Grilled chicken breast over mixed greens, tossed in a balsamic vinaigrette.</dd>
<dt>Alcachofas Estofadas</dt>
<dd class="price">$6.95</dd>
<dd class ="ingredients">Braised artichokes with serrano ham, sweet pea salad, walnut dressing, and manchego cheese.</dd>
<dl>
My view was that the 2 <dd>s did indeed define the <dt> and was therefore the proper format.
What's your opinion? Is a table the correct semantic approach?
Thanks,
Joe
This is the format that I'm currently using.
<h2 class ="menu-category">TAPAS FRIAS</h2>
<dl>
<dt>Ensalada de Pollo</dt>
<dd class ="price">$5.95</dd>
<dd class ="ingredients">Grilled chicken breast over mixed greens, tossed in a balsamic vinaigrette.</dd>
<dt>Alcachofas Estofadas</dt>
<dd class="price">$6.95</dd>
<dd class ="ingredients">Braised artichokes with serrano ham, sweet pea salad, walnut dressing, and manchego cheese.</dd>
<dl>
My view was that the 2 <dd>s did indeed define the <dt> and was therefore the proper format.
What's your opinion? Is a table the correct semantic approach?
Thanks,
Joe