GFM Tables
Tables with syntax similar to tables in GitHub Flavored Markdown. Suitable for simple tables with single-line content in cells.
Tip
To quickly create tables, you can use online generators. For example, Tables Generator.
A table consists of:
- A header row.
- A separator row.
- Rows with data.
The header row is separated from table cells by three or more -
characters. Columns are separated by |
.
| Header 1 | Header 2 |
| ----------- | ----------- |
| Text | Text |
| Text | Text |
Result
Header 1 | Header 2 |
---|---|
Text | Text |
Text | Text |
In the table cells, you can use line formatting, links, single-line code snippets, and images.
Text alignment
Use the :
symbol in the separator row to align the text in the columns to the left, right, or center.
| Align left | Align center | Align right |
| :--- | :----: | ---: |
| Text | Text | Text |
| Text | Text | Text |
Result
Left-aligned | Centered | Right-aligned |
---|---|---|
Text | Text | Text |
Text | Text | Text |
Was the article helpful?
Previous
Next