Friday, 6 February 2015

GLOSSARY LIST

 Glossary lists are lightly different from other list other. Each list item in a glossary list has two parts:
·         A term
·         The term’s definition

Each part of the glossary list has its own tag: <dt> for the term (definition term), and <dd> for its definition (definition definition). <dt> and <dd> usually occur in pairs, although most browsers can handle single terms or definitions. The entire glossary lists is indicated by the tags <d1>……,/d1> (definition list).
The following is a glossary list example with a set of herbs and descriptions of how they grow:
<d1>
<dt> basil </dt>
<dd> annual. Can grow four feet high; the scent of its tiny white
Flowers is heavenly <dd>
<dt> oregano</dt>
<Dd> perennial. Sends out underground runners and is difficult to get rid of once established. </dd>
<dt> coriander </dt>
<dd> annual. Also called cilantro, coriander likes cooler weather of spring and fall. </dd>
</d1>
Glossary list usually are formatted in browsers with the terms and definition on separate lines, and the left margins of the definitions are indented.
You don’t have to use glossary lists for terms and definitions, of course. You can use them anywhere that the same sort of list is need faced. Here’s an example.
<d1>
<dt> Macbeth </dt>
<dd> I’ll go no more. I am afraid to think of what I have done; look on’t again I dare not. </dd>
<dt> lady Macbeth </dt>
<dd> infirm of purpose! Give me the dangers.
The sleeping and the dead areas but pictures. ‘Tis the eye if childhood that fears a painted devil. It he do bleed, I’ll gild the faces if the grooms with at, for it must seem their guilt. (Exit. Knocking within) </dd>
<dt> Macbeth </dt>
<dd> whence is that knocking? How isn’t wit me when every noise appalls me? What hands are here? Ha! They pluck out mine eyes! Will all Neptune’s ocean wash this blood clean from my hand? No. this hand ill Cather the multitudinous seen incarnadine, making the green one red. (Enter Lady Macbeth)</dd>
 <dt> lady Macbeth </dt>
<dd> my hands are of your color, but I shame to wear a heart so white. </dd>
</d1>
The following input and output example shows how glossary list is formatted in a browser (see figure 4.9).
INPUT

<d1>
<dt> basil <>/dt>
<d> annual. Can grow four feet high; the secant of its tiny white flowers is heavenly. </dd>
<dt> oregano </dt>
<dd> perennial. Sends out underground runners. And is difficult to get rid of once established </dd>
<dt> coriander </dt>
<dd> annual. Also called cilantro, coriander.
Likes cooler weather of spring and fall.
</dd>
</d1>
w

No comments:

Post a Comment