Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Definition Lists 81

5


property. You can specify three values for list-style: the list style type, the list style
position, and the URL of the image to be used as the bullet style. This property is just a
shortcut for use if you want to manipulate several of the list-related properties simultane-
ously. Here’s an example:



  • Example


Definition Lists


Definition lists differ slightly from other lists. Each list item in a definition list has two
parts:


n A term
n The term’s definition

Each part of the glossary list has its own tag:

for the term (definition term ), and


for its definition (definition description).
and
usually occur in pairs,
although most browsers can handle single terms or definitions. The entire glossary list is
indicated by the tags
...
(definition list).

The following is a glossary list example with a set of herbs and descriptions of how they
grow (see Figure 5.8):


Input ▼



Basil

Annual. Can grow four feet high; the scent of its tiny white
flowers is heavenly

Oregano

Perennial. Sends out underground runners and is difficult
to get rid of once established.

Coriander

Annual. Also called cilantro, coriander likes cooler
weather of spring and fall.

Free download pdf