Share this Page URL

Chapter 4. The Gist of a List: Adding Li... > Defining Definition Lists - Pg. 49

The Gist of a List: Adding Lists to Your Page <DL> <DT>A Term</DT><DD>Its Definition</DD> <DT>Another Term</DT><DD>Another Definition</DD> <DT>Yet Another Term</DT><DD>Yet Another Definition</DD> <DT>Etc.</DT><DD>Abbreviation of a Latin phrase that means "and so forth."</DD> </DL> 49 Webmaster Wisdom People often use definition lists for things other than definitions. Some web welders like to use the term (the <DT> part) as a section heading and the definition (the <DD> part) as the section text. You can also leave out the term and just use the <DD> tag by itself. This is handy for those times when you need indented text (say, if you're quoting someone at length). Let's look at an example. The HTML document shown next (it's on this book's CD in the file named defnlist.htm) uses a definition list to outline a few words and phrases and their definitions. (Notice that I've applied bold face to all the terms; this helps them stand out more when the browser displays them.) <HTML> <HEAD> <TITLE>Definition List Example</TITLE> </HEAD> <BODY> <H3>Some Techno-Terms You Should Know</H3> <DL> <DT><B>Barney Page</B></DT><DD>A Web page that tries to capitalize on a current craze.</DD> <DT><B>Bit-Spit</B></DT><DD>Any form of digital correspondence.</DD> <DT><B>Byte-Bonding</B></DT><DD>When computer users discuss things that nearby noncomputer users don't understand. See also <I>geeking out</I>.</DD> <DT><B>Clickstreams</B></DT><DD>The paths a person takes as she negotiates various Web pages.</DD> <DT><B>Cobweb Page</B></DT><DD>A Web page that hasn't been updated in a while.</DD> <DT><B>Geek</B></DT><DD>Someone who knows a lot about computers and very little about anything else.</DD> <DT><B>Geeking Out</B></DT><DD>When <I>geeks</I> who are <I>byte-bonding</I> start playing with a computer during a noncomputer-related social event.</DD> </DL> </BODY> </HTML> Figure 4.6 shows how the definition list appears in the Internet Explorer for the Mac scheme of things.