09-CSS List Properties

0
91

In HTML, there are two types of lists:

  • unordered lists (<ul>) – the list items are marked with bullets
  • ordered lists (<ol>) – the list items are marked with numbers or letters

The CSS list properties allow you to:

  • Set different and unique  list item markers for ordered lists
  • Set different list item markers for an  unordered lists in a given webpage.
  • Set an image as the list item marker
  • Add background colors to lists and list items in  a given webpage.
[html]

 

Example of unordered lists:

  • Coffeecan
  • Dairymilk
  • Fivestar
  • Coffeecan
  • Dairymilk
  • Fivestar

Example of ordered lists:

  1. Coffeecan
  2. Dairymilk
  3. Fivestar
  1. Coffeecan
  2. Dairymilk
  3. Fivestar

 

[/html]
Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.