HTML li

From Htmlpedia
Jump to: navigation, search

HTML Element LI

Definition and Usage

The <li> tag defines an item inside of <ol> or <ul> tags.


Examples

<ol>
   <li>Item One</li>
   <li>Item Two</li>
</ol>
<ul>
   <li>Item One</li>
   <li>Item Two</li>
</ul>

Outputs

  1. Item One
  2. Item Two

-and-

  • Item One
  • Item Two

Attributes

Have been depreciated in favor of CSS styles.