Skip to content
Markdown

Tables

GFM tables with column alignment.

By EZ4Code Team
tableformattinggfm

Code

| Name  | Age | Role     |
|-------|-----|----------|
| Alice | 30  | Engineer |
| Bob   | 25  | Designer |

Aligned columns:

| Left   | Center | Right |
|:-------|:------:|------:|
| a      | b      | c     |

Explanation

GFM tables use pipe characters to separate columns and a separator row of dashes to mark the header boundary. Colons in the separator row control alignment: left, center, or right. Leading and trailing pipes are optional but improve readability.

More Markdown Snippets