Markdown is a lightweight markup language for creating formatted text using a plain-text editor. Markdown is a way to style text on the web. It is mostly used in GitHub as readme.md
file to explain our project.
Markdown file has an extension of .md
1. Heading
To give a heading in Markdown we use # symbol. We have six different types of headings (Like we have in HTML from h1 to h6).
# Heading1
## Heading2
### Heading3
#### Heading4
##### Heading5
###### Heading6
Output:
Heading1
Heading2
Heading3
Heading4
Heading5
Heading6
2. Text Decoration
Bold text:
**bold**
Italic text:
*italic*
Strikethrough text:
~~strike~~
Strong emphasized text:
**_Strong emphasized text_**
Output:
Bold text: bold
Italic text: italic
Strikethrough text: strikethrough
Strong emphasized text: Strong emphasized text
3.List
Ordered List:
1. One
2. Two
3. Three
1. One
2. Two
Unordered List:
- One
- Two
- Three
- One
- Two
Output: Ordered List:
One
Two
Three
One
Two
Unordered List:
One
Two
Three
One
Two
4. Adding Links
[Google Link](https://www.google.com)
Output:
5. Adding Images
![alt text](https://learncodeonline.in/mascot.png)
Output:
6. Horizontal line
***
hello world!
***
Output:
hello world!
7. Blockquote using >
>Hello world!
>Hello JavaScript!
Output:
Hello world!
Hello JavaScript!
8.Table
| Cricket | Football |
| ------- | -------- |
| Data1 | Data1 |
| Data2 | Data2 |
Output:
Cricket | Football |
Data1 | Data1 |
Data2 | Data2 |