2024-07-24
Learn how to create various styles of tables using Markdown syntax.
| Name | Age |
|--------|------|
| John | 30 |
| Alice | 25 |
Name | Age |
---|---|
John | 30 |
Alice | 25 |
Markdown’s table support is minimal but functional. This document explores ways to enhance table presentation and readability in your documents.
A table in Markdown is created using pipes (|
) and hyphens (-
). Example:
| Header | Header |
| ------ | ------ |
| Cell | Cell |
To align table columns, you can use colons on the separator line:
| Left | Center | Right |
| :------| :----: | ------: |
| Value1 | Value2 | Value3 |
| Left | Center | Right |
| :-----:| :----: | :-----:|
| Value1 | Value2 | Value3 |