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  •  title  •  top  •  vertical-align  •  visibility  •  white-space  •  width  •  class  •  colorspace  •  direction  •  id  •  lang  •  pdf-tag-background-color  •  pdf-tag-border-color  •  pdf-tag-border-style  •  pdf-tag-border-thickness  •  pdf-tag-color  •  pdf-tag-list-numbering  •  pdf-tag-placement  •  pdf-tag-table-colspan  •  pdf-tag-table-headers  •  pdf-tag-table-rowspan  •  pdf-tag-table-scope  •  pdf-tag-table-summary  •  pdf-tag-text-align  •  pdf-tag-type
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>