Table structure
A basic table has three parts: column names, a separator, and rows of content.
- Use `|` between columns.
- Use `---` under each header.
- Keep the number of cells consistent across rows.
Syntax guide
Markdown tables are compact, readable, and useful for simple structured data. The key is getting the separator row right.
Quick answer
A Markdown table needs a header row, a separator row, and one or more data rows. Pipes separate columns; hyphens in the second row tell the renderer where the header ends.
Reference
markdown table
A basic table has three parts: column names, a separator, and rows of content.
Alignment markers work in many Markdown renderers, but tables are still meant for simple data.
Examples
| Name | Role | Status |
| --- | --- | --- |
| Ada | Writer | Drafting |
| Lin | Reviewer | Ready |This is the most portable table pattern.
| Left | Center | Right |
| :--- | :---: | ---: |
| A | B | C |Alignment support depends on the renderer, so preview before publishing.
FAQ
Check the separator row. Each column needs a matching separator such as `---` directly under the header.
Standard Markdown tables do not support merged cells. Use HTML when you need more complex table layouts.
Spaces make tables easier to read, but the pipe characters and separator row are the important parts.