Nov 8, 2018

HTML Lists

HTML can have Unordered Lists, Ordered Lists, or Description Lists:

Unordered HTML List

  • The first item
  • The second item
  • The third item
  • The fourth item

Ordered HTML List

  1. The first item
  2. The second item
  3. The third item
  4. The fourth item

HTML Description List

The first item
Description of item
The second item
Description of item

  1. Use the HTML <ul> element to define an unordered list
  2. Use the HTML style attribute to define the bullet style
  3. Use the HTML <ol> element to define an ordered list
  4. Use the HTML type attribute to define the numbering type
  5. Use the HTML <li> element to define a list item
  6. Use the HTML <dl> element to define a description list
  7. Use the HTML <dt> element to define the description term
  8. Use the HTML <dd> element to define the description data
  9. Lists can be nested inside lists
  10. List items can contain other HTML elements
  11. Use the CSS property display:inline to display a list horizontally