You are on page 1of 9

HTML LIST

LIST
Allow web developers to group a set of
related items in lists.
Main Types of HTML List
Unordered List Ordered List

Unordered List: Ordered List:


• First item 1. First item
• Second item 2. Second item
• Third item 3. Third item
• Fourth item 4. Fourth item
• Fifth item 5. Fifth item
Main Types of HTML List
Unordered List Ordered List

• List items will be marked • List items will be marked


with bullets by default with numbers by default
• <ul> defines the • <ol> defines the
unordered list unordered list
• Each list items starts with • Each list items starts with
<li> tag <li> tag
Main Types of HTML List
Unordered List Syntax Ordered List Syntax
Unordered HTML List – Choose List item
marker
• The CSS list-style-type property is used to define the style
of the list item marker. It can have one of the following
values:
Value Descriptiom
disc Sets the list item marker to a bullet (default)
circle Sets the list item marker to a circle
square Sets the list item marker to a square
none The list items will not be marked
Unordered HTML List – Choose List item
marker
Example Syntax Example Output
Other Type of HTML List
• Description List
• is a list of terms, with a description of each term

Tag Description
<dl> defines the description list
<dt> defines the term (name)
<dd> describes each term
Other Type of HTML List
Description List Syntax Description List Output

You might also like