Nested Lists

Indent to create sub-items

Markdown Source

1. First
   - Nested A
   - Nested B
2. Second
   - Nested C

Rendered HTML Output

<ol><li>First<ul><li>Nested A</li><li>Nested B</li></ul></li>
<li>Second<ul><li>Nested C</li></ul></li></ol>

Explanation

Indent list items with 2–4 spaces (or a tab) to nest them under the previous item. Mix ordered and unordered freely.

Tips & Common Mistakes

Related Markdown Examples

Try It

Markdown Preview Tool →

All Examples