Lists In Html:
There are 3 types of lists in Html.
Ordered lists actually shows with numbers bullets same like word processors. The tag which is use to add order list in your Html page is <ol> and the items of this list shows in <li>. See the example.
Number/ Order List Example:
Just simply add your wish from which number you want to start 5,6 or whatever.
Number/Order List Advance
This is a little bit advance trick for order or number list you can start it with any number like you want to start a list from number 5 or from 7 or etc you can do it by using it's attribute let's see the example and preview.
Number/Order List Advance Example:
There are numbers of type of lists as shown below.
Here is the example of the type of the list just change the type.
Html - Unordered List
Unordered lists actually shows with dots bullets same like word processors. The tag which is use to add unorder list in your Html page is <ul> and the items of this list shows in <li>. See the example.
Unorder List Example:
Here's a look at the other flavors of unordered lists may look like.
Here is the example of the Unordered List type
There are 3 types of lists in Html.
- <ol> - Ordered List
- <ul> - Unordered List
- <df> - Definition List
Ordered lists actually shows with numbers bullets same like word processors. The tag which is use to add order list in your Html page is <ol> and the items of this list shows in <li>. See the example.
Number/ Order List Example:
<ol>
<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ol>
Numbered/Order List Preview:<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ol>
- John
- Miller
- Bunty
Number/Order List Advance
This is a little bit advance trick for order or number list you can start it with any number like you want to start a list from number 5 or from 7 or etc you can do it by using it's attribute let's see the example and preview.
Number/Order List Advance Example:
<ol start="5">
<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ol>
Numbered/Order List Advance Preview:<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ol>
- John
- Miller
- Bunty
<ol type="a">
<ol type="A">
<ol type="i">
<ol type="I">
<ol type="A">
<ol type="i">
<ol type="I">
Here is the example of the type of the list just change the type.
Lower-Case | Upper-Case | Lower-Case | Upper-Case |
|
|
|
|
Unordered lists actually shows with dots bullets same like word processors. The tag which is use to add unorder list in your Html page is <ul> and the items of this list shows in <li>. See the example.
Unorder List Example:
<ul>
<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ul>
Unorder List Preview:<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ul>
- John
- Miller
- Bunty
<ul type="square">
<ul type="disc">
<ul type="circle">
<ul type="disc">
<ul type="circle">
Here is the example of the Unordered List type
type="square" | type="disc" | type="circle" |
|
|
|
Comments
Post a Comment