Types of Lists in HTML
1.1 Introduction
A list is a record of short pieces of information, such as people’s names, usually written or printed with a single thing on each line and ordered in a way that makes a particular thing easy to find.
The types of lists that can be used in HTML are :
- ul : An unordered list. This will list items using plain bullets.
- ol : An ordered list. This will use different schemes of numbers to list your items.
1.2 Syntax
‹ul attribute='value'›
‹li›content1‹/li›
‹li›content2‹/li›
‹li›content3‹/li›
‹/ul›
‹ol attribute='value'›
‹li›content1‹/li›
‹li›content2‹/li›
‹li›content3‹/li›
‹/ol›
‹ul type='square'›
‹li›Gold‹/li›
‹li›Silver‹/li›
‹li›Bronze‹/li›
‹/ul›
‹ol type='1'›
‹li›Gold‹/li›
‹li›Silver‹/li›
‹li›Bronze‹/li›
‹/ol›