HTML users need to implement numbers and bullets format to their web pages. There are few types of numbers and bullets format available.
Here is the sample code of bullets and result here.
<ul>
<li>Line 1</li>
<li>Line 2</li>
<li>Line 3</li>
</ul>Result of above sample codes
Here is the sample code of numbers and result here.
<ol>
<li>Line 1</li>
<li>Line 2</li>
<li>Line 3</li>
</ol> Result of above sample codes
- Line 1
- Line 2
- Line 3
Tag
UL is used for implement bullets and UL stands for Un-ordered list.
Tag
OL is used for implement number and OL stands for Ordered list.
Tag
LI is used for implement a line in both and LI stands for List item.
Un-ordered list styles <ul type="disc">
<ul type="square">
<ul type="circle"> To use styles above bullet style will change
Ordered list styles <ol type="1">
<ol type="A">
<ol type="a">
<ol type="I">
<ol type="i"> The sample codes above will change the style of ordered list.
Nested ListSample code
<ul type="square">
<li>World</li>
<ol type="i">
<li>Asia</li>
<li>Africa</li>
</ol>
</ul> Result