HTML Lists

 
There are three types of lists in html that can be used, namely:

Unordered Lists : <UL> To create a list of items with bullet marks. List entries are defined with the tag <li>.
Example:

<UL>
<li> Item number 1
<li> Item number 2
<li> Item number 3
</UL>

Results from the code above is:
Item number 1
Item number 2
Item number 3
With the TYPE attribute you can define the form of disc, circle or square bullet points.
Example:

<UL COMPACT TYPE=square>

Ordered Lists : <OL> Also used to make a list of items, with each item to use arabic or roman numbers. List entries are also defined by <li> tag.
Example:

<OL TYPE=I>
<li> Item number 1
<li> Item number 2
<li> Item number 3
</OL>

Results from the code above is:
1. Item number 1
2. Item number 2
3. Item number 3

For TYPE You can also use:
1 - Default numbers, 1, 2, 3, etc.
A - Uppercase. A, B, C, etc.
a - Lowercase. a, b, c, etc.
I - Roman uppercase. I, II, III, etc.
i - Roman lowercase letters, i, ii, iii, etc.

Definition Lists : <DL>
Example:
<DL>
<dt> first item. <dd> Description of first item.
<dt> second item. <dd> Description of second item
</ DL>

0 comments:

Post a Comment