Markdown: Lists

Markdown: Lists

HTML has two main types of lists: ordered (1, 2, 3, etc.) and unordered (bullets). Below are examples of how to create these in markdown.


Example: Ordered list in Markdown


	1. Fortran
	2. Pascal
	3. Cobol
	

Output:

   1. Fortran
   2. Pascal
   3. Cobol

The markdown code above is equivalent to the HTML code below.


	<ol>
	   <li>Fortran
	   <li>Pascal
	   <li>Cobol
	</ol>
	

Example: Unoordered list in Markdown

Unordered lists in markdown can be created either with an asterick (*) order a dash (-).


	* Fortran
	* Pascal
	* Cobol
	

Output:

   • Fortran
   • Pascal
   • Cobol

The markdown code above is equivalent to the HTML code below.


	<ul>
	   <li>Fortran
	   <li>Pascal
	   <li>Cobol
	</ul>