Markdown Toolbox Logo Markdown Toolbox
Home
Blog

All Table Options in Markdown - Advanced

2024-07-24

Short version

Learn how to create various styles of tables using Markdown syntax.

| Name   | Age  |
|--------|------|
| John   | 30   |
| Alice  | 25   |
Name Age
John 30
Alice 25

Long version

Introduction

Markdown’s table support is minimal but functional. This document explores ways to enhance table presentation and readability in your documents.


1. Basic Table Syntax

A table in Markdown is created using pipes (|) and hyphens (-). Example:

| Header | Header |
| ------ | ------ |
| Cell   | Cell   |

2. Aligning Table Columns

To align table columns, you can use colons on the separator line:

  • Align left:
| Left   | Center | Right  |
| :------| :----: | ------: |
| Value1 | Value2 | Value3 |
  • Align center:
| Left   | Center | Right  |
| :-----:| :----: | :-----:|
| Value1 | Value2 | Value3 |

3. Additional Options

  • Cell spanning: Not supported in standard Markdown.
  • Styling: Markdown provides no direct styling options; rely on CSS where supported.

Conclusion

Though Markdown's table capabilities are basic, combining alignment and proper structuring can help create effective tables in your documentation. Use these techniques to improve your content.