HTML List Item 'li' Tag/Element

Q

What Is a "li" Tag/Element?

✍: 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.

 

HTML Lists and List Items

⇒⇒HTML Tutorials

2017-02-20, 163👍, 0💬