6: Lists
There is only one other kind of list that I have to show you - the definition list. Unlike the OL and UL lists, which only needed two types of tags (the list type then LI for each item), this type needs three:
- DL
- 'Definition List' is the list type
- DT
- 'Definition Term' is the term to be defined
- DD
- 'Definition' is the definition.
The definition can be as long or as short as you need, and can span multiple lines
if necessary.It can even have multiple paragraphs
Now a typical definition list looks just like the above when it's rendered on your browser. The code structure for a definition list goes as follows:
<DL>
<DT> The first term to be defined
<DD> The first definition.<BR>
This can have multiple lines, and they will all be indented as a block.
<DT> The second term to be defined
<DD> The second definition.
</DL>This can of course be extended as long as you need with more DT/DL pairs, and can contain images and hyperlinks for cross-referencing.
