How to Create Markdown Tables
Syntax and tips for building tables in Markdown for GitHub, docs, and blogs.
Markdown tables use pipes and dashes to define columns and rows. GitHub Flavored Markdown (GFM) supports alignment and is widely supported in README files and documentation sites.
Basic syntax
- Header row: | Column 1 | Column 2 |
- Separator: | --- | --- | (required)
- Data rows: | Value 1 | Value 2 |
- Alignment: :--- (left), :---: (center), ---: (right)