It even works if you put breaks or paragraph marks in your document as I have done here.
The rest of the items in this list will be Soviet Space Dogs
You can create sub-lists within a list. To do that, we simply start a new list inside of one list item:
favorite foods
<b>favorite foods </b> <ol> <li>spaghetti </li> <li>fruit </li> <li>cheese</li> <ol> <li>cheddar </li> <li>swiss </li> <li>american</li> <li>brie </li> </ol> </li> <li>lima beans </li> </ol>Note that the numbering system for the sublist is the same as the numbering for the main list. We may want to change this system. There are five types available in the ordered list: arabic numbers (1, 2, 3...), capital roman numerals (I, II, III, IV ...), lower case roman numerals (i, ii, iii, iv, v....), capital lettering (A, B, C...), and lower case lettering (a, b, c, ...). To specify which type you want, you use the type attribute in your list. The value for the above numbering systems is the first character of each type. Respectively: 1, I, i, A, a. To convert our food list, to look like this:
favorite foods
<b>favorite foods </b> <ol type="I"> <li>spaghetti </li> <li>fruit </li> <li>cheese</li> <ol type="i"> <li>cheddar </li> <li>swiss </li> <li>american</li> <li>brie </li> </ol> </li> <li>lima beans </li> </ol>
Favorite Foods
You can see that in unordered lists, the type changes automatically when you have a sub-list. We can still specify the different types of bullet here, just as we described the different types of numbering in the ordered list. The bullet types are circle, disc, and square and you choose them with the type attribute. Inserting type="circle" for the outer list and disc for the sub-list, our code looks like this:
Favorite Foods
What a definition list allows you to do is to create something akin to a dictionary definition.
The definition list has three tags associated with it. The first is the DL tag, which stands for Definition List. As in the other two lists, the start and end tag surround the body of the list. Instead of LI tags, though, the list is divided into two parts: the title, and the definition. As shown above, the title aligns with the rest of the text in the document. It is enclosed in <dt> </dt> tags. The Body of the definition is indented and is enclosed in <dd> </dd> tags. Thus, to do the list shown above, our code would look like this:
<dl> <dt> This is the title part </dt> <dd> This is the part where you list the definition. I'm making this long just to show you again that the text wraps nicely for us, just like it did in the ordered and unordered lists. </dd> </dl>