In Markdown, an ordered list is used when the sequence of items is important. You can create an ordered list by using numbers followed by a period and a space. The numbers do not need to be in sequential order; Markdown will automatically format them correctly when rendered.

Syntax for Ordered Lists

The basic syntax for creating an ordered list in Markdown is as follows:

1. First item
2. Second item
3. Third item

In this example, each item starts with a number followed by a period and a space. You can also use the same number for all items, and Markdown will still render them in the correct order:

1. First item
1. Second item
1. Third item

Example of an Ordered List

Here’s how an ordered list looks when rendered:

  1. First item
  2. Second item
  3. Third item

Nested Ordered Lists

You can also create nested ordered lists by indenting the sub-items with spaces or tabs. This is useful for creating subcategories within your list.

Syntax for Nested Ordered Lists

1. First item
1. Sub-item 1.1
2. Sub-item 1.2
2. Second item

Example of a Nested Ordered List

Here’s how a nested ordered list looks when rendered:

  1. First item
    1. Sub-item 1.1
    2. Sub-item 1.2
  2. Second item

Conclusion

Creating an ordered list in Markdown is simple and effective for organizing information where the order matters. By using numbers followed by a period and a space, you can easily create clear and structured lists that enhance the readability of your content.