Table of contents
Table
Code
Color
Alerts
Reference
Footnotes
Table
Tabular data is a great way to lay out the information.
A Table in Markdown always has the title row followed by the alignment row, then your content can follow from the third row.
Here is how you can create a Table and in this example, it will have three columns but you can create as many as you require:
The 1st column is using
:---
which will make the whole column left alignedThe 2nd column is using
:---:
which will make the whole column centredThe 3rd column is using
---:
which will make the whole column right aligned
| Column 1 | Column 2 | Column 3 |
| :--- | :---: | ---: |
| Row 1a | Row 1b | Row 1c |
| Row 2a | Row 2b | Row 2c |
The rendered Table will look like this:
Using the Styling covered previously, you can create emphasis in the Table with bold or italic:
| Column 1 | Column 2 | Column 3 |
| :--- | :---: | ---: |
| Row 1a | Row 1b | Row 1c *italic* |
| Row 2a | Row 2b **bold** | Row 2c |
Keep reading with a 7-day free trial
Subscribe to The Open Source Expert to keep reading this post and get 7 days of free access to the full post archives.