HTML ul

From Htmlpedia
Jump to: navigation, search

HTML Element UL

Definition and Usage

The <ul> element creates an unordered list. The bullet's appearance can be changed to better suit a page's style. Common choices include a circle, a disc, and a square, but the CSS specification supports a custom graphic.


Example

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

<ul>
   <li>Item One</li>
   <li>Item Two</li>
   <li>
      <ul>
          <li>Sub Item 1</li>
          <li>Sub Item 2</li>
      </ul>
   </li>
</ul>

Outputs

  • Item One
  • Item Two

  • Item One
  • Item Two
    • Sub Item 1
    • Sub Item 2

Attributes

Have been deprecated in favor of CSS styles.