Today I learnt about lists in HTML which are very useful when we need to group certain data or highlight certain points in an website. There are mainly three types of list Ordered Unordered and Description.
Ordered List
In this Numbers are used by default as markers for each list item. We can also use Alphabets(Capital and Small) and Roman Numerals as markers by setting the type attribute of list tag.
Unordered List
This is also similar to ordered list except that instead of numbers, Bullets are used as markers. We can change that to Circle or Square using the list-style-type attribute.
Description List
This list is mainly used to provide important details regarding a topic in a short format. It is like a nested list in which content is nested inside a heading. No markers are used for this type of list.
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.