473,545 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mark up for restaurant menu

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

Jul 20 '05 #1
26 4877
Brian <us*****@mangym utt.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">C up $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

Jul 20 '05 #2
Jukka K. Korpela wrote:
Brian <us*****@mangym utt.com.invalid-remove-this-part> wrote:

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">C up $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>
Simple, and therefore an good idea.
(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.)
I copied that from the menu .pdf file I received, but have inserted the
dollar symbol ($) in the html. There is no reason not to include it there.
The class attribute is not needed but it makes it possible to style the
appearance easily in CSS.
Of course.
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.
That is one reason I wanted to avoid that. Another is that some items
have addional price information. Here's an example:

Classic Caesar (item)
Starter 3.75 / Entrée 6.75 (price as starter / main dish)

The house rendition of Caesar Cardini’s classic. Crisp romaine tossed
with grated
Parmesan cheese, homemade croutons and our own Caesar dressing. Served
with
anchovy upon request. (item description)

Starter Salad & Cup of Soup 6.95 (additional price information)
Starter Salad & Cup of Chowder 7.50 (additional price information)

I didn't come across this until after I'd posted my first message.
Otherwise, I would
have noted it then. Your solution of <h?> and <div> can handle this
quite easily.
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"?


Well, yes, I think I am. ("...with clams, diced onions, and bacon...")
But I'm also providing a price, which is not a definition.
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.


I seems quite easy to me. Just by floating dt left, I get a good deal
of the way there.

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

Jul 20 '05 #3
Jukka K. Korpela schreef:
Brian <us*****@mangym utt.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">C up $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>


Is there a special reason to prefer <div> over <p>?
--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html *Dagboek*
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html *Zweefvliegen*?

Jul 20 '05 #4
"Barbara de Zoete" <b_********@hot mail.com> wrote in message
news:bm******** ****@ID-52872.news.uni-berlin.de...
Jukka K. Korpela schreef:
Brian <us*****@mangym utt.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">C up $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>


Is there a special reason to prefer <div> over <p>?


In the example given, is it really a paragraph? The first div obviously is
NOT a paragraph. The second div does not really contain a paragraph either
(it contains a fragment of a sentence). In addition, style can be applied
to <div> elements with better results than to <p> elements.

<div> looks correct to me. In fact, you might consider expanding the markup
slightly to something like this:

<div id="ClamChowder ">
<h2>Clam Chowder</h2>
<div class="price">C up $3.25 / Bowl $6.95</div>
<div class="desc">Th ick New England-style clam chowder with clams, diced
onion and celery, bacon, red bell pepper, but no potatoes!</div>
</div>

It's a slightly more flexible design. Just a thought. :)

Regards,
Peter Foti

--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html *Dagboek*
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html *Zweefvliegen*?

Jul 20 '05 #5
Peter Foti schreef:
"Barbara de Zoete" <b_********@hot mail.com> wrote in message
news:bm******** ****@ID-52872.news.uni-berlin.de...
Jukka K. Korpela schreef:
Brian <us*****@mangym utt.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">C up $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>
Is there a special reason to prefer <div> over <p>?


In the example given, is it really a paragraph?


If you ask it this straight forward: no, it isn't. But then I reply with
a question: is 'Clam Chowder' really a <h#>?

I think there are two different ways of looking at html mark-up. Page
structure versus logical text content structure (sorry if I'm not clear
at once; I'm not native speaking in English).

What I mean is, if Clam Chowder is considerred to be a heading, I think
that is not because of the textual content, but because of the mark-up
structure. If so, there is no reason not use <p> for whatever follows
the <h#>.
The first div obviously is
NOT a paragraph. The second div does not really contain a paragraph either
(it contains a fragment of a sentence). In addition, style can be applied
to <div> elements with better results than to <p> elements.
Well, this I consider a _good_ reason to use <div>! Keep it simple for
ourselves.

Thanks, question answered.
It's a slightly more flexible design. Just a thought. :)


I like the way you think.

--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html *Dagboek*
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html *Zweefvliegen*?

Jul 20 '05 #6


Barbara de Zoete wrote:

Peter Foti schreef:
"Barbara de Zoete" <b_********@hot mail.com> wrote in message
news:bm******** ****@ID-52872.news.uni-berlin.de...
Jukka K. Korpela schreef: <h2>Clam Chowder</h2>
<div class="price">C up $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>

Is there a special reason to prefer <div> over <p>?


In the example given, is it really a paragraph?


If you ask it this straight forward: no, it isn't. But then I reply with
a question: is 'Clam Chowder' really a <h#>?


Yes, since it "briefly describes the topic of the section it introduces".

Thor

--
http://thorweb.anta.net/
Jul 20 '05 #7
Thor Kottelin schreef:

Barbara de Zoete wrote:
Peter Foti schreef:

"Barbara de Zoete" <b_********@hot mail.com> wrote in message
news:bm***** *******@ID-52872.news.uni-berlin.de...
Jukka K. Korpela schreef:
<h2>Clam Chowder</h2>
><div class="price">C up $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>
>
Is there a special reason to prefer <div> over <p>?

In the example given, is it really a paragraph?


If you ask it this straight forward: no, it isn't. But then I reply with
a question: is 'Clam Chowder' really a <h#>?

Yes, since it "briefly describes the topic of the section it introduces".


According to you it does. According to me it is just an element of a
list of different foods.

--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html *Dagboek*
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html *Zweefvliegen*?

Jul 20 '05 #8


Barbara de Zoete wrote:

Thor Kottelin schreef:

Barbara de Zoete wrote:
is 'Clam Chowder' really a <h#>?
Yes, since it "briefly describes the topic of the section it introduces".


According to you it does. According to me it is just an element of a
list of different foods.


Where do we disagree - briefly, describes, topic, section, introduces?

Thor

--
http://thorweb.anta.net/
Jul 20 '05 #9
Thor Kottelin schreef:

Barbara de Zoete wrote:
Thor Kottelin schreef:

Barbara de Zoete wrote:is 'Clam Chowder' really a <h#>?Yes, since it "briefly describes the topic of the section it introduces".


According to you it does. According to me it is just an element of a
list of different foods.


Where do we disagree - briefly, describes, topic, section, introduces?


:-) I think we disagree as in the way we think, but narrowing that down:
topic and introduces. If I'm in a restaurant reading a menu, I don't
think of the listed food as topics. I just see listed food that gets
described so I can find out what I order (although I have no clue, not
even from the description, what Clam Chowder is ;-) ).

--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html *Dagboek*
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html *Zweefvliegen*?

Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2092
by: Fat Bloke | last post by:
Not very good at this... A friend has asked me to do his restaurant menu. This has several sections - Starters, Main Courses, Vegetarian, etc, each section having different items within it. How can I query the database to give him - Starters starter 1 starter 2 etc
0
1121
by: Inquest750 | last post by:
Does anyone know where I can buy databases that contain restaurant bars and clubs in the America's Europe, etc.... I found a website that sold them a while ago but lost the link and can no longer find it, any help will be greatly appreciated...
1
20385
by: Brian | last post by:
I have a restaurant menu to layout. http://www.tsmchughs.com/menus/ The format is item name, price, description, and possibly additional price info (e.g., soup and salad price). I'm trying to decide how best to use the space. I find that if I leave the width of the menu items to auto, the layout is too spread out. If I limit the width,...
7
2409
by: Paul T. Rong | last post by:
Hello everybody, I am making a db for recording ordered dishes for kitchen and the billing in a restaurant. There is one problem. Rarely but it happens, two customers sharing one table, for example Table No.1, order independently their own food, then comes the puzzledom, the db can not manage to accept the two different orders from the same...
15
2233
by: Paul T. RONG | last post by:
Hello, I am making a restaurant database (it is much more complicated than I thought before!), now it comes to the last stage and I come across a problem. I will explain it in detail. In a restaurant, though rarely, but it happens, that one guy from desk1 would like to pay for bills of both desk1 and desk2 (I avoid using Access term...
1
8248
by: hadi | last post by:
Imagine a restaurant which we want to store information about. Two types of people are related to it. 1) People who simply call and the foods are delivered to them. 2) People who actually come to the restaurant and eat their food there. For both categories, order information(OrderID, OrderDate, EmployeeID) is stored. But for the first...
1
8634
by: hadi | last post by:
Imagine a restaurant which we want to store information about. Two types of people are related to it. 1) People who simply call and the food is delivered to them. 2) People who actually come to the restaurant and eat their food there. For both categories, order information(OrderID, OrderDate, EmployeeID) is stored. But for the...
2
7327
by: Brian Kendig | last post by:
I'm trying to make a web page with a restaurant menu on it. Each line on the menu is the name of a dish (left-justified) and that dish's price (right-justified), with a dotted line between them. I'm doing something similar to this menu: http://cunardrestaurant.com/images/menu6.jpg But three things make it difficult: (1) the names of the...
1
1490
by: Frasers Bistro | last post by:
When laying out a restaurant menu, is there a specific order in which dishes should be listed? i.e. Meat, Poultry, Seafood, etc.?
0
7486
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4965
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.