Markdown - List

This tutorial covers Markdown lists - Ordered, unordered, syntax with examples..

List

In Html pages, List of similar items can be represented in formatted way for readability, Markdown also uses special syntax asterick *, hyphen - or plus + to create a list

There are three types of lists in genera;

  • Unordered or bullet list
  • Ordered or numbered list
  • Description list

Unordered List of items

these also called bullet list used to represent the list of items in unordered way. It uses asterick *, hyphen - or plus + to create unordered list

here is a Bullet list syntax

* item 1
* Item 2
- Item 3
- Item 4
+ item 5
+ item 5

Generated Html code is

<ul>
    <li>item 1</li>
    <li>Item 2</li>
</ul>
<ul>
    <li>Item 3</li>
    <li>Item 4</li>
</ul>
<ul>
    <li>Item 5</li>
    <li>Item 6</li>
</ul>

On a browser, you can see list as follows

  • item 1
  • Item 2
  • Item 3
  • Item 4
  • item 5
  • item 5

Ordered List

The list of items can be represented using numbers started from 1,2 etc and followed by period . symbol or right parenthesis. These can also be called numbered list

Numbered list syntax

1. Ordered list element one
2. Ordered list element two

Generated Html code is

<ol>
    <li>Ordered list element one</li>
    <li>Ordered list element two</li>
</ol>

user can see the list on browser as follows

  1. Ordered list element one
  2. Ordered list element two

Description List

Descriptions list of itesm with each item contain description head and description. markdown don’t have support for description list. Please check extended syntax for different vendors to have a support for description list

Next Next