Database Reference
In-Depth Information
Definition lists
A definition list consists of two-part items, each including a term and a definition.
“Term” and “definition” have loose meanings because you can display any kind of in‐
formation you want. The following doremi table associates the name of each note in a
musical scale with a mnemonic phrase for remembering it:
mysql> SELECT id, note, mnemonic FROM doremi ORDER BY id;
+----+------+----------------------------+
| id | note | mnemonic |
+----+------+----------------------------+
| 1 | do | A deer, a female deer |
| 2 | re | A drop of golden sun |
| 3 | mi | A name I call myself |
| 4 | fa | A long, long way to run |
| 5 | so | A needle pulling thread |
| 6 | la | A note to follow so |
| 7 | ti | A drink with jam and bread |
+----+------+----------------------------+
The mnemonics aren't exactly what you'd call “definitions”; nevertheless, the note and
mnemonic columns can be displayed as a definition list:
do
A deer, a female deer
re
A drop of golden sun
mi
A name I call myself
fa
A long, long way to run
so
A needle pulling thread
la
A note to follow so
ti
A drink with jam and bread
A definition list begins and ends with <dl> and </dl> tags. Each item has a term enclosed
within <dt> and </dt> tags and a definition enclosed within <dd> and </dd> tags:
<dl>
<dt> do </dt> <dd> A deer, a female deer </dd>
<dt> re </dt> <dd> A drop of golden sun </dd>
<dt> mi </dt> <dd> A name I call myself </dd>
<dt> fa </dt> <dd> A long, long way to run </dd>
<dt> so </dt> <dd> A needle pulling thread </dd>
<dt> la </dt> <dd> A note to follow so </dd>
<dt> ti </dt> <dd> A drink with jam and bread </dd>
</dl>
In a JSP page, generate the definition list like this:
Search WWH ::




Custom Search