li element

Type:Lists
Attributes: value  •  align  •  alt  •  background-color  •  background-image-dpi  •  background-image-position  •  background-image  •  background-pdf  •  border-color  •  border-style  •  border-width  •  border  •  clear  •  corner-radius  •  display  •  float  •  font-size  •  height  •  href  •  left  •  line-cap  •  line-height  •  line-join  •  margin  •  onmouseover  •  overflow  •  padding  •  page-break-after  •  page-break-inside  •  position  •  rotate  •  size  •  top  •  vertical-align  •  visibility  •  white-space  •  width  •  class  •  colorspace  •  direction  •  id  •  lang
See:a ol p ul

The li tag indicates an itemized element, which is usually preceded by a bullet, a number, or a letter.

The li tag is used inside the list containers ol (ordered list) and ul (unordered list). A single itemized element can contain other tags such as the p tag, more ol or ul tags to create nested lists, or text, in which case an anonymous paragraph is created (see the p tag for more information on anonymous paragraphs).

Unlike HTML, the marker type may not be set at this level but will be the marker from the enclosing ol or ul element.

<ol>
<li>Element 3</li>
<li>Element 4</li>
<li>Element 5</li>
</ol>