What Is a LI Tag/Element

Q

What Is a LI Tag/Element? - XHTML 1.0 Tutorials - Understanding Lists and List Items

✍: FYICenter.com

A

An "li" element is flow type element, which can be used only as a child element of "ol" and "ul" elements. An "li" element can be used to define a list item. Here are basic rules about "li" elements:

  • "li" elements can only be used as sub-elements of "ol" and "ul" elements.
  • "li" elements can have text contents.
  • "li" elements can have in-line elements as sub-elements.
  • "li" elements can have block elements as sub-elements.

2007-05-12, 4703👍, 0💬