Markdown allows writers to create well-structured documents in plain text, which can then be rendered into HTML, PDF, or other formats. Below is a more detailed explanation of Markdown syntax.
Headers are used to create titles and subtitles. They range from level 1 to level 6. The number of #
symbols determines the level of the header.
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
Markdown allows you to emphasize text in various ways, such as italicizing, bolding, or combining both.
*italic* or _italic_
**bold** or __bold__
***bold and italic*** or ___bold and italic___
Unordered lists use symbols like -
, *
, or +
for bullet points.
- Item 1
- Item 2
- Subitem 1
- Subitem 2
Ordered lists use numbers followed by periods. Sub-items can be created by indenting.
1. First item
2. Second item
1. Subitem 1
2. Subitem 2
Links are created using square brackets []
for the text and parentheses ()
for the URL.
Images are similar to links but with an exclamation mark !
at the beginning. The alt text is placed inside the square brackets.

Markdown supports inline code and code blocks.
Inline code is wrapped with single backticks.
`inline code`
inline code
Code blocks are surrounded by triple backticks or indented with four spaces. Specifying a language after the opening backticks enables syntax highlighting.
def hello_world():
print("Hello, World!")
def hello_world():
print("Hello, World!")
Blockquotes are used for quoting text. They are created with the >
symbol.
> This is a blockquote.
> It can span multiple lines.
This is a blockquote. It can span multiple lines.
Horizontal rules are used to create a separation between sections of content. Use three or more -
, *
, or _
characters.
---
Tables in Markdown use pipes |
to separate columns and hyphens -
to define the header row.
| Syntax | Description |
|-------------|-------------|
| Header | Title |
| Paragraph | Text |
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Task lists are checkboxes in Markdown, often used in GitHub or other project management contexts.
- [x] Completed task
- [ ] Incomplete task
Footnotes provide a way to add references or additional notes in Markdown.
Here is a sentence with a footnote[^1].
[^1]: This is the footnote.
Here is a sentence with a footnote1.
Markdown allows for HTML to be included in the document.
<p>This is a paragraph in HTML.</p>
This is a paragraph in HTML.
If you want to display a literal character (like *
or #
), use the backslash \
to escape it.
\*This text is not italicized\*
*This text is not italicized*
This is a comprehensive guide to using Markdown. With practice, you can create well-formatted documents easily!
This is the footnote. ↩