Introduction
Markdown is a lightweight markup language that makes it easy to format plain text for documentation, blogs, and even web pages. Developers widely use it to write README files, project documentation, and more. In this guide, we'll cover the basics and advanced features of Markdown.
Headings
Use #
for headings:
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Bold and Italics
**Bold Text**
*Italic Text*
~~Strikethrough~~
Lists
-
Unordered list:
- Item 1 - Item 2 - Subitem 2.1
-
Ordered list:
1. First item 2. Second item
Links
[Google](https://www.google.com)
Images

Blockquotes
> This is a blockquote.
>
> It can span multiple lines.
Code Blocks
Use triple backticks for multi-line code blocks:
console.log("Hello, World!");
For inline code, use single backticks:
Use `console.log()` to print messages.
Advanced Markdown Features
Tables
| Name | Age | Country |
|-------|-----|---------|
| John | 25 | USA |
| Alice | 30 | Canada |
Task Lists
- [x] Task 1
- [ ] Task 2
- [ ] Task 3
Footnotes
Markdown is awesome![^1]
[^1]: Yes, it really is.
Emoji Support
:smile: :rocket: :tada:
Embedding HTML
Markdown also supports inline HTML:
<div style="color:blue">This is blue text</div>
iFrame Embedding
Although Markdown does not directly support iframes, you can use HTML:
<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
URLs
To display a URL as a clickable link:
<https://www.example.com>
Tools for Writing Markdown
Here are some popular tools for writing and previewing Markdown:
Conclusion
Markdown is an essential skill for developers, writers, and content creators. By mastering Markdown, you can create clear, well-structured documentation effortlessly. Start practising today and level up your documentation game!
Happy writing! 🚀
Follow for more!
Top comments (0)