Learn Markdown from Scratch
Hello! Welcome
Today we are going to learn about Markdown format, a simple way to write formatted text, from scratch!
What is Markdown?
Markdown is a markup language that allows us to format text easily.
For example, create headings, bold text, lists, links, tables and much more!
Why use Markdown?
You can use Markdown to write documents of all kinds.
For example, it is widely used for taking notes, writing documentation, README files…
Additionally, it converts easily to HTML! It’s very useful for writing on the web!
You’re doing great!
Now let’s talk about the Markdown syntax
Line Breaks
Markdown is a bit “special” with line breaks. Generally, Markdown completely ignores single line breaks.
To create line breaks in Markdown, you must leave a blank line between paragraphs
Bold and Italics
For bold, use two asterisks (**text**
). For italics, use one (*text*
).
**Bold Text**
*Italic Text*
Headings
To create headings, use hash numbering (#
). The more hashes, the smaller the heading.
# Large Heading
## Medium Heading
## Small Heading
You’re almost there!
Now we just need to see how to insert elements in Markdown
Lists
You can create ordered and unordered lists.
- Unordered lists are created with dashes
-
- Ordered lists are created with numbers
1.
,2.
…
- Item 1
- Item 2
Tables
You can also create tables using (|
) and (-
) (it’s a bit tricky! 🙄)
Column 1 | Column 2 |
---|---|
Row 1 | Row 2 |
Row 3 | Row 4 |
Links and Images
To insert links, use brackets and parentheses: [text](URL)
.
And to insert images, it’s the same, but you add an exclamation mark: ![alt-text](URL)
.
Code
Finally, to highlight inline code, use backticks (`code`
).
If it’s a block of code, use three backticks (```
)
```
code block
```
Well done!
Now you know the basics of Markdown!
You can use it to write formatted text comfortably.