Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Ordered lists represent numbered, sequential steps where order matters—such as installation tutorials, recipe steps, or algorithmic procedures.
To create an ordered list, prefix each line with a number followed by a period (.) or parenthesis ()), and a space:
<ol><li>Clone the repository</li><li>...</li></ol>One of Markdown's greatest conveniences is that you do not need to manually calculate numbers! The parser will automatically re-number the items consecutively on render:
Rendered Output in Browser:
1.? If you later insert a new step in the middle of a 20-step tutorial, you do not need to manually renumber the remaining 19 steps!In CommonMark and GFM, the first number determines the starting index of the HTML list (<ol start="X">):
This will render starting from number 10, rather than 1!
You can freely mix ordered and unordered lists to build complex hierarchical outlines:
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Unordered Lists & Bullet Customization | Task Lists & Interactive Checkboxes |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.