Help:Wiki University Wikitext--Nesting Lists
Lessons
- HOME
- Introduction
- Headers
- Lists
- Nesting Lists
- Links
- Broken Links
- Comments
- Categories
- Image Embedding
- Image Tooltips & Borders
- Image Links
- Images & Text; Embedding PDF
- Snipping Tool & Paint
- Paragraphs
- Inline Styling
- Changing Fonts
- Font Colors
- Backgrounds
- Multi-attributes
- Font Bold-Italics
- Div Tag - Intro
- Borders
- Padding
- Margins
- Width and Height
- Alignment - Horizontal
- Tables
- Breadcrumb Trails
- Ref/Footnotes
- SEO
Intermediate
Advanced
Flexbox
Additional Helps
Nesting Lists[edit | edit source]
Many times you need to break down individual items in a list. If you had a list of fruits like this:
- Apples
- Pears
- Cherries
- Oranges
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
- Granny Smith
- Golden Delicious
- Red Delicious
- Pears
- Cherries
- Oranges
NOTICE each variety is on a separate line.
NOTICE each item on the nested lists is indented.
You can even nest lists inside of nested lists by using more asterisks.
Unordered Nested Lists[edit | edit source]
Put two asterisks for items in a nested list.
*Apples
**Granny Smith
**Golden Delicious
**Red Delicious
*Pears
Ordered Nested Lists[edit | edit source]
Put two pound signs for items in a nested list
#Apples
##Granny Smith
##Golden Delicious
##Red Delicious
#Pears
It will look like this:
- Apples
- Granny Smith
- Golden Delicious
- Red Delicious
- Pears
- Cherries
- Oranges
NOTICE the nested list is on separate lines.
NOTICE the nested list is indented.
NOTICE that the nested list is numbered instead of letters.
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.
Try these out[edit | edit source]
- 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.
- 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