Li (HTML element)

From Wiki @ Karl Jones dot com
Revision as of 11:56, 1 May 2016 by Karl Jones (Talk | contribs) (Created page with "In HTML, the '''li''' element represents an item in a list. == Description == It is commonly known as a list item element. It must be contained in a parent...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In HTML, the li element represents an item in a list.

Description

It is commonly known as a list item element.

It must be contained in a parent element:

  • An ordered list, using ol
  • An unordered list, using (ul
  • A menu, using menu

In menus and unordered lists, list items are usually displayed using bullet points.

In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.

Examples

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

See also

External links

  • li @ w3.org
  • li @ developer.mozilla.org
  • li @ w3schools.com