Dl,dt,dd,ul,li,ol differences in HTML lists and their applications
Dl,dt,dd,ul,li,ol differences in HTML lists and their applications
Tools/Materials
Method/Step
- 1
Unordered list
An unordered list is a list of items that are marked with a bold dot (typically a small black circle).
The unordered list starts with the <ul> tag. Each list item starts at <li>.
- 2
Ordered list
Similarly, a sequence table is a list of items that are marked with numbers.
The sequence list starts with the <ol> tag. Each list item starts with the <li> label.
- 3
Definition List
A custom list is not just a column of items, but a combination of items and their annotations.
The custom list starts with the <dl> tag. Each custom list item starts with <dt>. The definition of each custom list item starts with <dd>.
- 4
Different types of ordered lists
This example shows the different types of ordered lists.
- 5
This is the HTML list tag we used to
END
Precautions
- Paragraphs, line breaks, pictures, links, and other lists can be used within all of the list items above
Dl,dt,dd,ul,li,ol differences in HTML lists and their applications