HTML Lists Code
Chapter - 9 : Inserting HTML Lists (HTML Lists Code): (Page 1/2)
This command is used to display the information in a list pattern. There are basically three types of HTML lists. Unordered, Ordered and Definition
9.1- HTML Unordered Lists:
An unordered list does not have the serial numbers and marked with small black bullets. This list starts with <ul> tag and ends with </ul> tag and each row are written between <li> and </li>
Command: <ul><li>Delhi</li>
<li>Bangalore</li>
<li>Lucknow</li></ul>
Output:
The Small dot can be changed by the square by the 'type' command -
Command: <ul style="list-style-type:square">
<li>Delhi</li>
<li>Bangalore</li>
<li>Lucknow</li></ul>
Output:
9.2- HTML Ordered Lists:
An ordered list will have the automatic serial numbers. This starts with <ol> and ends with </ol> and each rows are between <li> and </li>
Command: <ol><li>Delhi</li>
<li> Bangalore</li>
<li>Lucknow</li></ol>
Output:
1. Delhi
2. Bangalore
3. Lucknow
(Cont......... to next page (Pg-2))

©
funandhobby.com (HTML Lists Code)