HTML list is of two types.
Ordered list
Unordered list
HTML Ordered list is defined by <ol> tag and inside the <ol> tag, list is defined by <li> tag.
Run the code to see the effect.
HTML Unordered list is defined by <ul> tag and inside the <ul> tag, list is defined by <li> tag.
Run the code to see the effect.
Type attributes are used to enhance the property of HTML list.
Type | Description |
---|---|
type="1" | The list items start with numbers (default) |
type="a" | The list items start with lowercase letters |
type="A" | The list items start with uppercase letters |
type="i" | The list items start with lowercase roman numbers |
type="I" | The list items start with uppercase roman numbers |
Run the code to see the effect.
Run the code to see the effect.
Run the code to see the effect.
Run the code to see the effect.
Type | Description |
---|---|
type="disc" | The list items start with disc type bullet (default) |
type="square" | The list items start with circle type bullet |
type="circle" | The list items start with square type bullet |
type="none" | The list items will not be marked |
Run the code to see the effect.
Run the code to see the effect.
Run the code to see the effect.
In the Nested list, we can put a list inside a list.
Run the code to see the effect.