Lists provide a great way to draw attention to important information. Although you may use paragraph format to include the items of your list, it may not be always effective as lists help readers to easily find, read, and use the information presented in a list. We make that point with the following example:

List items in a paragraph

Information shown in a paragraph may not immediately draw user's attention to the parts of your list as the user has to read the paragraph text before the listing is reached. So consider use listing to draw user's attention. Creating lists in XHTML: is easy as in HTML, requires knowledge of markup to start and end list and to add items to the list, allows you to present information in a more attractive manner.

Information shown as a list

As you will notice in this example, you can quickly spot the list items shown in this list below rather than some items shown in the above paragraph. Our list example:

  • listing item is easy
  • before you start, think of the type of list you want and the items you want to list
  • for each list, use an opening and closing tag
  • for each list item, use an opening and closing tag

As it is now evident to you from the above output, you are likely to agree to use lists, when appropriate, instead of paragraphs. Beside lists makes information more readable, there are other notable advantages. First of all, listed items can be shown with a bullet character, a number or letter, or some other defined custom graphic character. Secondly, addition or removing of an item does not require update to the listing character. For instance, if you are using a numbered list, if you add or remove an item, you don't have to update the number because it is automatically shown based on the list item you have for your list. Lastly, there are number of presentation specifications for lists and can be coded in style sheets.

Lists in XHMTL can be grouped into these categories:

  1. Numbered list (also called ordered list)
  2. Bullet list (also known as unordered list)
  3. Definition list