09-CSS List Properties

0
107

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
Previous article08-CSS Dimension Properties
Next article10-CSS Margin Properties
Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!

Leave a Reply

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