From the course: Learning Markdown: Formatting Text without the Complexity
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Creating tables in Markdown - Markdown Tutorial
From the course: Learning Markdown: Formatting Text without the Complexity
Creating tables in Markdown
- [Instructor] Tables are part of a version of markdown called GitHub flavored markdown, or GFM for short. Although it's not part of the original definition, it's extremely common in many different tools. To create a table, you create a series of cells by using hyphens, pipe, and sometimes colons. Let me show you how that works. I'm going to add a simple header here and a second header right here. And I want to add some content underneath, so I'll just type those things in. If I want to create a table, all I need to do is separate these with some pipe characters, and do the same thing for the content. And I need to add another column here, and that column should have pipe characters as well as hyphens, indicating the different cells. Now once you do this correctly, and how many pipes you need depends on the processor, but usually three should be enough. You'll get a table. You could see it right here. Now it looks really nice because I added some extra CSS right here to define what…