Creating list
Listing can be done in two ways :
- Order listing &
- Unorder listing.
Order listing
<ol> :
This tag format list in order list. An ordered list starts with the <ol> tag an item in a list starts with the <li> tag.
This tag have following attributes:
Attributes | Description | Values |
---|---|---|
start : | User can change start value of listing by spacifying particular number. | number |
type : | Type of listing can be specified here. | A, a, I, i or 1. |
value : | Sequence of order can be change by setting this attribute value. | number or alphabate |
compact : | Specifies that the list should render smaller than normal. | compact |
<ol type="a" >
<li>Mango</li>
<li>Apple</li>
<li>Banana</li>
</ol>
- Mango
- Apple
- Banana
<ol type="1" start="5" compact="compact">
<li>Mango</li>
<li>Apple</li>
<li value="11">Banana</li>
<li>Guava</li>
<li>Orange</li>
</ol>
- Mango
- Apple
- Banana
- Guava
- Orange
Unorder listing
<ul>:
Unorder list refers to the collection of related items that have no specific order sequence.
Attributes of this tags are:
Attributes | Description | Values |
---|---|---|
type : | Set the type of list to appear. | bullets, disc, circle or square. |
compact : | Specifies that the list should render smaller than normal. | compact |
<ul type="suare" >
<li>Mango</li>
<li>Apple</li>
<li>Banana</li>
</ul>
- Mango
- Apple
- Banana
<li> :
This tag defines an item in the list.
This tag is used in both <ol> and <ul> to define a list.
Attributes used with this tag are:
Attributes | Description | Values |
---|---|---|
type : | Set the type of list to appear. | A, a, I, i, 1, bullets, disc, circle or square. |
value : | Sequence of order can be change by setting this attribute value. | number or alphabate |
0 comments:
Post a Comment