标记餐厅菜单 [英] mark up for restaurant menu

查看:40
本文介绍了标记餐厅菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须标记几个餐馆菜单。下面是两个例子:


蛤蜊浓汤杯3.25 /碗6.95

浓厚的新英格兰式蛤蜊浓汤配

蛤蜊,切块洋葱和芹菜,培根,红色

甜椒,但没有土豆!


混合绿色初学者3.50 /Entrée6.25

Tossed - 您可以选择我们的任何一种选择

我们的House调料:Blue Cheese,Creamy

Herb或Ballymaloe。点缀着

榛子和红洋葱。


我正在考虑使用dl列表。


< DL CLASS =" menu" ID =汤>


< DT>蛤蜊杂烩< / DT>

< DD>杯3.25 /碗6.95< / DD>

< DD>厚厚的新英格兰式蛤蜊浓汤...< / DD>


<! - 等 - >

< / DL>


对此有何想法?它对我来说似乎比桌子更有意义。


-

Brian

按照我的地址中的说明进行操作给我发电子邮件

解决方案

Brian< us ***** @ mangymutt.com.invalid-remove-this-part>写道:

我必须标记几个餐厅菜单。


菜肴的名称在逻辑上是一个标题(某种程度)。其余的可以使用< div>来标记
,因为我们没有价格标记

或其他类型的文本。


< h2> Clam Chowder< / h2>

< div class =" price"> Cup


< blockquote> 3.25 / Bowl


6.95< / div>

< div>厚厚的新英格兰风味蛤蜊浓汤配

蛤蜊,洋葱和芹菜切丁,培根,红色

甜椒,但没有土豆!< / div>


(我会在货币中加上货币名称或符号,如果只是为了生成

,那么它们是价格而不是代码或数量。)


不需要class属性,但它可以在CSS中轻松设置

外观的样式。


或者,你可以使菜单成为一个表格,将不同的

部分(名称,价格信息,描述)作为连续的单元格。但是你这个b / b
可能不喜欢这个案例中的表元素的默认表示。

我正在考虑使用一个dl列表。


你真的提出_definition_清单吗?

< DT> clam chowder< / DT>




您是否为术语蛤蜊杂烩提供_definition_,即

描述需要什么才能被称为clam

杂烩 ;?此外,< dl>的默认呈现。元素是

不是很好,_and_如果目前不可能那么很难

在CSS中调整渲染效果。


-

Yucca, http:// www。 cs.tut.fi/~jkorpela/

有关网页制作的网页: http://www.cs.tut.fi/~jkorpela/www.html


I have to markup a couple of restaurant menus. Two examples follow:

Clam Chowder Cup 3.25 / Bowl 6.95
Thick New England-style clam chowder with
clams, diced onion and celery, bacon, red
bell pepper, but no potatoes!

Mixed Greens Starter 3.50 / Entrée 6.25
Tossed-to-order with your choice of any of
our House dressings: Blue Cheese, Creamy
Herb or Ballymaloe. Garnished with
hazelnuts and red onion.

I''m thinking of using a dl list.

<DL CLASS="menu" ID="soups">

<DT>clam chowder</DT>
<DD>cup 3.25 / bowl 6.95</DD>
<DD>Thick New England-style clam chowder ...</DD>

<!-- etc. -->
</DL>

Any thoughts about this? It seems to make more sense than a table to me.

--
Brian
follow the directions in my address to email me

解决方案

Brian <us*****@mangymutt.com.invalid-remove-this-part> wrote:

I have to markup a couple of restaurant menus.
The name of a dish is logically a heading (of some level). The rest can
be marked up using just <div>, since we haven''t got markup for prices
or other types of text that you have there.

<h2>Clam Chowder</h2>
<div class="price">Cup


3.25 / Bowl


6.95</div>
<div> Thick New England-style clam chowder with
clams, diced onion and celery, bacon, red
bell pepper, but no potatoes!</div>

(I would put a currency name or symbol into the prices, if only to make
it clear that they are prices and not codes or quantities.)

The class attribute is not needed but it makes it possible to style the
appearance easily in CSS.

Alternatively, you could make the menu a table, with the different
parts (name, price info, description) as cells in a row. But you
probably wouldn''t like the default presentation of a table element in
this case.
I''m thinking of using a dl list.
Are you really presenting a _definition_ list?
<DT>clam chowder</DT>



Do you provide a _definition_ for the term "clam chowder", i.e.
describe what something needs to be in order to be called "clam
chowder"? No. And besides, the default rendering of <dl> elements is
not very good, _and_ it is difficult if not currently impossible to
tune the rendering well in CSS.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


这篇关于标记餐厅菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆