Ordered & Unordered Lists
<ul>and inside it appear list item tags,
<li>, and inside each of those is the text of the item itself.
My shopping list:
<li>tags. In the example to the right, the text in red should not be there. Most browsers will display an example like this one properly, but since it is poor style, they may not. To fix this example, you could put "My shopping list" before
<ul>and put the commas inside the
- Main Idea
<ol type="A" >
<ol>tag. For the
<ul>tag, you can add the type attribute, which accepts disc, square, or circle (default), indicating the shape of the bullet. For the
<ol>tag, the type attribute indicates the number style and the valid values are A, a, I, i, and 1 (default). For A and a, the items will be marked with letters of the alphabet instead of numbers and for I and i they will be marked with Roman numerals. You can also use the start attribute to change the number the list starts with.
<dd><em>n.</em> a female child</dd>
<dd><em>abbr.</em> short for incorporated</dt>
- n. a female child
- abbr. short for "incorporated"
Just like the other list tags, there is an outer container tag for
the list itself,
<dl>, and the list items are inside it. However,
the list items are now broken up into two tags, the term inside a
<dt> and the definition inside a
<dd> tag. Just like
ordered and unordered lists, it is poor style to put text outside of the
<dd> tags but inside the
End of Topic