Html List
There are three kinds of list
- Unordered lists
- Ordered lists
- Definition lists
1. Unordered Lists
“UL” element is used for forming an unordered list and contains at least one list element “LI”. You can see it,
Html code will be
< ul >
< li > A </ li >
< li > A < /li >
< li > A < /li >
< li > A < /li >
< /ul >
It will be displayed on browser
2. Order Lists
“OL” element is used for building an ordered list and contains at least one list element “LI”. You can see it,
Html code will be:
< ol >
< li > A </ li >
< li > A < /li >
< li > A < /li >
< li > A < /li >
< /ol >
It will be displayed on browser:
- A
- B
- C
- D
3. Definition List
You can create the glossaries with a definition list and it has a little bit more complex structure than the two lists above. ”DL” element is use for formed a definition list and at least one element pair “DT” and “DD”
Html code will be :
< dl >
< dt > HTML </ dt >
< dd > HTML stand for Hyper Text Markup Language < /dd >
< /dl >
It will be displayed on browser:
- HTML
- HTML stand for Hyper Text Markup Language
|