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
- Consistent indentation matters. 2 or 4 spaces typically work; tabs may behave differently across parsers.
Related Markdown Examples
Try It
Markdown Preview Tool →All Examples
Markdown Tables with AlignmentImages with Alt TextFenced Code Blocks with Syntax HighlightingLinks (Inline, Reference, Auto)Headings H1–H6Bold, Italic, StrikethroughOrdered and Unordered ListsBlock QuotesHorizontal RulesTask Lists / CheckboxesFootnotesEmoji ShortcodesEscaping Special CharactersDefinition Lists