Difference between revisions of "Li (HTML element)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Description)
 
Line 1: Line 1:
In [[HTML element|HTML]], the '''li''' element represents an item in a list.
+
In [[HTML element|HTML]], the '''li''' element represents an item in a list. It is commonly known as a list item.
  
 
== Description ==
 
== Description ==
 
It is commonly known as a list item element.
 
  
 
It must be contained in a parent element:  
 
It must be contained in a parent element:  

Latest revision as of 18:54, 1 May 2016

In HTML, the li element represents an item in a list. It is commonly known as a list item.

Description

It must be contained in a parent element:

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