
Ordered Lists :
12345<ol>
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ol>
Output :
- Example-1
- Example-2
- Example-3
Adding Attributes To ordered Lists :
See these examples and try them yourself .
Example - 1 :
Numbers using attributes :
12345<ol type="1">
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ol>
Output :
- Example-1
- Example-2
- Example-3
Using Alphabets - Upper and Lower cases :
12345<ol type="A">
<li>Upper-1</li>
<li>Upper-2</li>
<li>Upper-3</li>
</ol>
12345<ol type="a">
<li>Lower-1</li>
<li>Lower-2</li>
<li>Lower-3</li>
</ol>
Output :
- Upper-1
- Upper-2
- Upper-3
- Lower-1
- Lower-2
- Lower-3
Using Roman Numbers - Upper and Lower Case :
12345<ol type="I">
<li>Upper-1</li>
<li>Upper-2</li>
<li>Upper-3</li>
</ol>
12345<ol type="i">
<li>Lower-1</li>
<li>Lower-2</li>
<li>Lower-3</li>
</ol>
Output :
- Upper-1
- Upper-2
- Upper-3
- Lower-1
- Lower-2
- Lower-3
Unordered Lists :
12345<ul>
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ul>
Output :
- Example-1
- Example-2
- Example-3
You can give different shapes to the bullet by adding some styles . Try these and learn it .
Example - 1 :
Round dot or disc shape :
12345<ul style="list-style-type:disc">
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ul>
Output :
- Example-1
- Example-2
- Example-3
Circle :
12345<ul style="list-style-type:circle">
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ul>
Output :
- Example-1
- Example-2
- Example-3
Square Shape :
12345<ul style="list-style-type:square">
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ul>
Output :
- Example-1
- Example-2
- Example-3
No bullets :
12345<ul style="list-style-type:none">
<li>Example-1</li>
<li>Example-2</li>
<li>Example-3</li>
</ul>
Output :
- Example-1
- Example-2
- Example-3
Post A Comment:
0 comments: