User:Ccsmith/sandbox/experiment

Header Menu Main

Nesting Lists
Many times you need to break down individual items in a list. If you had a list of fruits like this: You might want to include some different varieties for each fruit mentioned. If you wanted to state the kinds of apples, for example: Granny Smith, Golden Delicious and Red Delicious, you would nest a list between apples and pears like so:
 * Apples
 * Pears
 * Cherries
 * Oranges


 * Apples
 * Granny Smith
 * Golden Delicious
 * Red Delicious
 * Pears
 * Cherries
 * Oranges

You can even nest lists inside of nested lists by using more asterisks.
 * NOTICE each variety is on a separate line.
 * NOTICE each item on the nested lists is indented.

Unordered Nested Lists
Put two asterisks for items in a nested list.  *Apples **Granny Smith **Golden Delicious **Red Delicious *Pears

Ordered Nested Lists
Put two pound signs for items in a nested list  It will look like this:
 * 1) Apples
 * 2) Granny Smith
 * 3) Golden Delicious
 * 4) Red Delicious
 * 5) Pears


 * 1) Apples
 * 2) Granny Smith
 * 3) Golden Delicious
 * 4) Red Delicious
 * 5) Pears
 * 6) Cherries
 * 7) Oranges

You can nest ordered lists inside of other ordered nested lists, but they will all have numbers instead of letters or roman numerals. You cannot nest ordered lists inside unordered lists and vice versa.
 * NOTICE the nested list is on separate lines.
 * NOTICE the nested list is indented.
 * NOTICE that the nested list is numbered instead of letters.

Try these out


 Exercises

Check your answers
 * To practice nesting unordered lists, in your sandbox create a list with the following items: Fruits, Vegetables, Nuts and Grains. In between each item list three varieties.

 Quick Quiz
 * If you were nesting a list of states in a list of countries, which list would you use?
 * A. Ordered List
 * B. Unordered List


 * If you were nesting a list of states by size in a list of countries by size, which lists would you use?
 * A. Ordered List
 * B. Unordered List

Check your answers