Markdown List Syntax
You can organize items into ordered and unordered lists.
Ordered Lists
To create an ordered list, add line items with numbers followed by periods. The numbers don’t have to be in numerical order, but the list should start with the number one.
Markdown:
1. First item
2. Second item
3. Third item
4. Fourth item
Rendered Output:
- First item
- Second item
- Third item
- Fourth item
Unordered Lists
To create an unordered list, add dashes (-
), asterisks (*
), or plus signs (+
) in front of line items. Indent one or more items to create a nested list.
Markdown:
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
Rendered Output:
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
Next, let's learn about Markdown Code Block Syntax.