What is markdown?
Markdown is a markup language that is used to format text on the web. Markdown was created in 2004 by John Gruber and it is one of the most popular markup languages nowadays, as it is very easy to use, portable, platform-independent, and syntax is super simple to write.
You can use markdown for the website, GitHub(readme), Email, technical documentation, and more.
How to create your first Markdown files?
It’s super simple to create a markdown file just create a text file using the extension ‘.md’ or '.markdown' inside your Visual Studio Code or other code editor that you prefer. and your markdown file is ready to work on.
Markdown Cheat Sheet to write better readme for your GitHub.
Let’s go and look at some basic Markdown syntax.
Headings
Just like Html, we have headings from h1 to h6, and we write them using the # character in front of it. Let's have look at it.
# Heading one
## Heading two
### Heading three
#### Heading four
##### Heading five
###### Heading six
Paragraph
To write a paragraph there is no syntax in Markdown, just write what you have to write. Let's have a look at it.
Text styles
Using markdown syntax, You can change text styles to bold, italic, strike-through, blockquotes. Let's have a look at it.
Text styling in Markdown.
**This is bold.**
__This is also bold.__
*This is italic.*
_This is also italic._
~~This is strike thorough.~~
>This is Blockquotes.
Lists In Markdown
You can also create lists in Markdown just like Html you can create an ordered list and an unordered list. Let's see how to do this.
Ordered list
1. one
2. two
3. three
unordered list
- one
- two
- three
Lists In Markdown
You can also embed a link in Markdown just like Html. to embed a link you need to use the syntax:- [link name](link.com)
[read my article](https://developandchill.hashnode.dev/)
Images in Markdown
You can also add images in markdown, it's similar to the syntax of link just you need to add ! in front of it. Let's have a look at it.
Code block in Markdown
You can also write code inside markdown by using a single ` backtick for single line code and ``` for backtick for multiline codes. after the backtick you can name the programming language in which it's written it supports almost all the languages. let's see an example.
So, we discussed all the basics of markdown hope you enjoyed it. please if you wish to read more about Markdown you can visit markdownguide.org.
So, That's it hope you enjoyed and loved my article on markdown, please follow me and share my article. Thanks.