Difference between revisions of "Li (HTML element)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→Examples) |
Karl Jones (Talk | contribs) (→External links) |
||
Line 33: | Line 33: | ||
* [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li li] @ developer.mozilla.org | * [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li li] @ developer.mozilla.org | ||
* [http://www.w3schools.com/tags/tag_li.asp li] @ w3schools.com | * [http://www.w3schools.com/tags/tag_li.asp li] @ w3schools.com | ||
+ | |||
+ | |||
+ | [[Category:HTML elemetns]] | ||
+ | [[Category:Lists (HTML)]] |
Revision as of 17:52, 1 May 2016
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 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>