type (ul,li,ol elements)

Jump to: navigation, search

type (ul,li,ol elements)

This article is Not Ready.


Summary

HTML element tags to show un-ordered list
<ul>
, ordered list
<ol>
, containing list items
<li>
.


Applies to  ?

Examples

This example uses the TYPE attribute to set the line item markers to lowercase Roman numerals.

<OL TYPE="i">
<LI>First Item
<LI>Second Item
<LI>Third Item
</OL>

View live example

To have sub lists in a document markup whether an ordered list or un-ordered list.

HTML

<h2>Un-ordered list of Items</h2>
<ul>
    <li>list item one</li>
    <ul><h3>Sub list</h3>
        <li>Sub list item one</li>
        <ul><h4>Sub list</h4>
            <li>Sub list item one</li>
            <li>Sub list item two</li>
            <li>Sub list item three</li>
            <li>Sub list item four</li>
        </ul>
        <li>Sub list item two</li>
        <li>Sub list item three</li>
        <li>Sub list item four</li>
    </ul>
    <li>list item two</li>
</ul>

<h2>Ordered list of Items</h2>
<ol>
    <li>list item</li>
    <ol><h3>Sub list</h3>
        <li>Sub list item</li>
        <ol><h3>Sub list</h3>
            <li>Sub list item</li>
            <li>Sub list item</li>
            <li>Sub list item</li>
            <li>Sub list item</li>
        </ol>
        <li>Sub list item</li>
        <li>Sub list item</li>
        <li>Sub list item</li>
    </ol>
    <li>list item two</li>
</ol>


Syntax

Standards information

See also

Related pages (MSDN)

  • li
  • ol
  • ul

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]