MarkDown for beginners
Tags: markdown
Published: 2019-03-25 02:37:56

---
title: MarkDown for beginners
published: true
description: A markdown crash course
tags: markdown
---

## What is markdown?

* Lightweight markup language
* Can be converted into HTML/XHTML and other formats
*  It's main purpose is readability and ease of use

## What is it used for?

* Readme Files(GitHub, etc)
* Forums and Blogs
*  Used in may static site generators

Some basic things you can format 

Headings  &nbsp; Blocks of Code

Lists &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Images

Emphasis  &nbsp;&nbsp; Blockquotes

Links &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Horizontal Rules


## Headings

```
# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading
```
# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading


---

## Italics

```
*This text is in italics*

_This text_ is in italics
```
*This text is in italics*

_This text_ is in 


---


## Strong

 ```
 **This text is in strong**

__This text__ is in strong
 ```
**This text is in italics**

__This text__ is in italics


---


## Strikethrough

```
~~This text~~ is strikethough
```
~~This text~~ is strikethough


---



## Horizontal Rule


```
---
```
---

## show speacial character

```
\*This text is in italics\*
```

\*This text is in italics\*



---



## Blockquotes

```
> This is a Quote
```
> This is a Quote

<!-- Links -->

```
[https://www.sanamdeep.dev](https://www.sanamdeep.dev)
```

[https://www.sanamdeep.dev](https://www.sanamdeep.dev)



---



## show title on hover


```
[https://www.sanamdeep.dev](https://www.sanamdeep.dev "sanamdeep.dev")
```

[https://www.sanamdeep.dev](https://www.sanamdeep.dev "sanamdeep.


---



## Unordered Lists

```
* Item 1
  * Item 1.1
    * Item 1.1.1
* Item 2
  * Item 2.1
    * Item 2.1.1
```
* Item 1
  * Item 1.1
    * Item 1.1.1
* Item 2
  * Item 2.1
    * Item 2.1.1


---




## Ordered List


```
1. Item
    1. Item1.1
        1. Item 1.2
2. Item 2
    1. Item 2.1
        1. Item 2.1.1
```

1. Item
    1. Item1.1
        1. Item 1.2
2. Item 2
    1. Item 2.1
        1. Item 2.1.1



---



## Blockquotes

```
`<p>This is a paragraph</p>`
```

`<p>This is a paragraph</p>`



---



## Images


```
![Markdown Logo](https://markdown-here.com/img/icon256.png)
```

![Markdown Logo](https://markdown-here.com/img/icon256.png)



---



## GitHub markdown

### Code Blocks



<blockquote>
```bash <br />

npm install <br />

``` <br />
</blockquote>

```bash
npm install
```

<blockquote>
```javascript <br />
  function add(num1, num2) { <br />
    return num1 + num2; <br />
  } <br />
```
</blockquote>

```javascript
  function add(num1, num2) {
    return num1 + num2;
  }
```

<blockquote>
```python <br />
  def add(num1, num2): <br />
    return num1 + num2 <br />
``` <br />
</blockquote>


```python
  def add(num1, num2):
    return num1 + num2
```


---



### Tables

```
| Name    |  Email   |
| ----    |  ------  |
| John Doe | john@gmail.com |
| Jane Doe | john@gmail.com |
```

| Name    |  Email   |
| ----    |  ------  |
| John Doe | john@gmail.com |
| Jane Doe | john@gmail.com |



---



### Task Lists

```
* [x] Task 1 completed
* [x] Task 2 completed
* [ ] Task 3 not completed
```

* [x] Task 1 completed
* [x] Task 2 completed
* [ ] Task 3 not completed