HTML - Lists


HTML Intro
 
 
 
 
 
 

There are two types of list - ordered (numbered) and unordered (bulleted).

To create an ordered/numbered list, type the <ol> and </ol> tags at the beginning/end of the list and <li> and </li> around each list item:

<ol>
<li>first list item</li>
<li>second list item</li>
<li>third list item</li>
</ol>

will display as

  1. first list item
  2. second list item
  3. third list item

To create an unordered/bulleted list, type the <ul> and </ul> tags at the beginning/end of the list and <li> and </li> around each list item:

<ul>
<li>first list item</li>
<li>second list item</li>
<li>third list item</li>
</ul>

  • first list item
  • second list item
  • third list item

Set attributes to change the way the bullets appear:

ul type= "circle" or "square"
choose one of these options - default is filled circle if you don't specify, circle is same but not filled.

ol type="I" or "i" (roman numerals) or "a" or "A".

 

site map | index | email me | top