What Are HTML List Elements

Q

What Are HTML List Elements?

✍: FYIcenter.com

A

HTML offers 3 list elements:

  • "ol" - Ordered List: A list of items with leading sequential numbers.
  • "ul" - Unordered List: A list of items with leading bullets.
  • "dl" - Definition List: A list of items with leading terms.

Here are some generic rules about list elements:

  • List elements are block level elements.
  • List elements can not have text contents.
  • A list element must have at least one list item element.
  • List item elements are flow type elements, which allows both block level and inline level elements as its sub-elements.

 

HTML Lists and List Items

⇒⇒HTML Tutorials

2017-06-16, 251👍, 0💬