Lists (HTML)

From Wiki @ Karl Jones dot com
Revision as of 18:52, 1 May 2016 by Karl Jones (Talk | contribs) (Created page with "In HTML, lists are used to group related pieces of information together. == Description == Lists are good from a structural point of view as they help create a well-stru...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In HTML, lists are used to group related pieces of information together.

Description

Lists are good from a structural point of view as they help create a well-structured, more accessible, easy-to-maintain document.

List are made up of a container element, and one or more list item elements.

Types of lists

There are three list container types in HTML:

  • Unordered list — used to group a set of related items, in no particular order.
  • Ordered list — used to group a set of related items, in a specific order.
  • Description list — used to display name/value pairs such as terms and their definitions, or times and events.

Examples

Here is an unordered list containing three list items:

<ul>
 <li>First item</li>
 <li>Second item</li>
 <li>Third item</li>
</ul>

See also

External links