We may display the contents in a list format. There are two types of list; ordered and unordered.
The ordered list will display the contents in a numbered list (e.g. 1, 2, 3,… or a,b,c,…). The elements used for ordered list is <ol>…</ol>. Each item in the list is represented with <li>…</li> element. Try this,:
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ol>
This code will display the three lines in 1,2,3 format (default format). If you want to display in different format, say a,b,c then you should add type attribute in the <ol> element.Hence, the element should be written as <ol type=”a”>. Change to type=”i” will make the list follow a roman format.
To produce an unordered list, change <ol>…</ol> to <ul>…</ul> element in the above code. You will see that the list is now represented in bullet format.