CSS List and its Example
CSS List :
There are two main types of lists in HTML — Ordered and Unordered
- Ordered: lists (<ol></ol>), the order of the list items is important. The items may appear in order by number, roman numeral, alpha numeral, or another type of marker. The default marker for ordered lists is a number.
- Unordered: In Unordered lists (<ul></ul>), the order of the list items does not matter. The items appear in bullet format. The default marker for unordered lists is a round bullet point or disc.
Ordered List
Unordered: In Unordered lists (<ul></ul>), the order of the list items does not matter. The items appear in bullet format. The default marker for unordered lists is a round bullet point or disc.
Example : default property
- Learn C programming
- Learn C++ Programming
- Learn Python Programming
- Learn java Programming
- Learn JavaScript Programming
- Learn Html Designing
- Learn css Tutorials
- Learn php Programming
- Learn sql Data Base
Unordered List: default property
Unordered: In Unordered lists (<ul></ul>), the order of the list items does not matter. The items appear in bullet format. The default marker for unordered lists is a round bullet point or disc.
Example :
- Learn C programming
- Learn C++ Programming
- Learn Python Programming
- Learn java Programming
- Learn JavaScript Programming
- Learn Html Designing
- Learn css Tutorials
- Learn php Programming
- Learn sql Data Base
Using CSS list property : list-style-type:square;
Output :
- Coffee
- Tea
- Milk
Using CSS list property : list-style-type:none;
Output :
- Coffee
- Tea
- Milk