dd and dt tags are used for lists.
We usually use the
tag, but the dd and dt tags are also pretty good, especially when publishing a program, you can use it to typeset the list of functional modules.
-
is used to create a normal list,
- is used to create the upper level item in the list,
is used to create the lowest level item in the list, - Both
and must be placed between the
tag pair. Take a look at the example below and you will understand:
Create a normal list
A normal list
- China City
- Beijing
- Shanghai
- Guangzhou
- American City
- Washington
- Chicago
- New York
This example is displayed in the browser as follows:
Chinese city
Beijing
Shanghai
Guangzhou
American city
Washington
Chicago
New York