Lists may be represented with HTML tags in three different ways. You may wish to create them as body content for a page. The tags are an asset in formatting text data visually in list format. They of course can be extended upon using Cascading Style Sheets (CSS) formatting.
Requirements
An HTML editor, such as a text editor.
Procedure
The first set of HTML list tags are unordered lists. These are denoted by tags.
Within these tags, you can have list items:
<ul> <li>Item information</li> <li>More item information</li> </ul>
Unordered lists are lists where each list item is bulleted.
The second set of HTML list tags are ordered lists. These are numbered lists:
<ol> <li>First numbered list item</li> <li>Another list item</li> </ol>
The third set are description lists. These are a list of items with descriptions for each. The descriptions follow the items on the next line, indented. They are written as:
-
<dl> <dt>Item 1</dt> <dd>Item 1's description</dd> <dt>Another item</dt> <dd>The description for the preceding item</dd> </dl>