HTML List

Html List

There are three kinds of list

  1. Unordered lists
  2. Ordered lists
  3. 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

  • A
  • B
  • C
  • D



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:

  1. A
  2. B
  3. C
  4. 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

 
 
Today, there have been 52 visitors (107 hits) on this page!
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free