Lists
There are three main types of lists, ordered, unordered and definition lists.
Lists are the preferred way to display items one after the other, instead of just using <br> tags. Lists are easy to create, with a tag to start and end the list itself, and a tag to start an end each item in the list.
Un-ordered Lists
An unordered list is a bulleted list, similar to the menu on the right (although the menu has been altered using stylesheets to use images instead of the standard bullets.)
- Define Unordered List -
<ul></ul> - Use the
<ul>tags to sets the start and end of the list. All list items go between these list tags. - Unordered List Item -
<li></li> - Each item must start with the
<li>tag. The closing tag is not required, but is considered to be good practice. - Bullet Type
<ul type="disc | circle | square"> - Can be applied to either then entire list or each list item.
Ordered Lists
This list is used when each list item needs to be indexed, such as a numbered list.
- Define Ordered List -
<ol></ol> - Use the
<ol>tags to sets the start and end of the list. All list items go between the ordered list tags. - Ordered List Item -
<li></li> - Each item must start with the
<li>tag. The closing tag is not required, but is considered to be good practice. - List Type
<ol type="A | a | I | i | 1"> - ...
- List Starting Position
<ol start="?"> - ...
- Item Value
<li value="?"> - ...
Definition Lists
Under Contruction
- Define a Definition List -
<dl></dl> - ...
- Definition Title -
<dt></dt> - ...
- Definition Description -
<dd></dd> - ...
See the lists example, and select 'view source' in your browser to see the html code.