HTML List
The list in HTML is implemented using tags <ul> and <ol>, and different lines with tags <li> to implement <li> contain the contents of each row of the list. List contains sequence table <ol> and unordered list <ul>
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>.
Instance
Different types of unordered lists
<Body> <h4>Disc bulleted List</h4> <ultype= "disc"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> </ul> <h4>Circle bulleted List</h4> <ultype= "Circle"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> </ul> <h4>Square bulleted List</h4> <ultype= "Square"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> </ul> </Body>
Different types of ordered lists
<Body> <h4>List of numbers</h4> <ol> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> </ol> <h4>Alphabetical List</h4> <oltype= "A"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> </ol> <h4>List of lowercase letters</h4> <oltype= "a"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> </ol> <h4>List of Roman alphabet:</h4> <oltype= "I"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> <Li>Orange</Li> </ol> <h4>Lowercase Roman alphabet list:</h4> <oltype= "I"> <Li>Apple</Li> <Li>Banana</Li> <Li>Lemon</Li> <Li>Orange</Li> </ol> </Body>
Nested lists
<Body> <h4>Nested lists</h4> <ol> <Li>Tea:<ul> <Li>Black tea</Li> <Li>Green tea</Li> </ul> </Li> <Li>Banana</Li> <Li>Lemon</Li> </ol> </Body>
Custom list
<Body> <h4>Custom list</h4> <DL> <DT>Computer</DT> <DD>Note: The machine used for calculation</DD> <DT>Display</DT> <DD>A device that visually displays information</DD> </DL> </Body>
The learning of HTML lists is here.
HTML Learning Notes (list)