Difference between revisions of "Li (HTML element)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→External links) |
Karl Jones (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
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 must be contained in a parent element: | It must be contained in a parent element: | ||
− | * An ordered list, using the [[Ol HTML element)|ol element]] | + | * An ordered list, using the [[Ol (HTML element)|ol element]] |
− | * An unordered list, using the [[Ul HTML element)|ul element]] | + | * An unordered list, using the [[Ul (HTML element)|ul element]] |
− | * A menu, using the [[Menu HTML element)|menu element]] | + | * A menu, using the [[Menu (HTML element)|menu element]] |
In menus and unordered lists, list items are usually displayed using bullet points. | In menus and unordered lists, list items are usually displayed using bullet points. | ||
Line 35: | Line 33: | ||
− | [[Category:HTML | + | [[Category:HTML elements]] |
[[Category:Lists (HTML)]] | [[Category:Lists (HTML)]] |
Latest revision as of 17: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:
- An ordered list, using the ol element
- An unordered list, using the ul element
- A menu, using the menu 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>