Photo by Richy Great on Unsplash

In this article, I will be telling you about the basics of markdown. Markdown is now widely used for writing the description for the repositories which are storing inside our GitHub so let's dive into learning it.

The output of how the code will look is given below the code.

First, let's see the different modes of heading.

# heading 1 ## heading 2 ### heading 3 #### heading 4 ##### heading 5 ###### heading 6

Writing a file in italics.

*this is italics* and this is not<br> _this is italics_ and this is not

Writing a strong text.

**this is strong** and this is not<br> __this is strong__ and this is not

Strikethrough text.

~~this is strikethrough~~ and this is not

Horizontal line breaks.

If we want to print ‘*’ and not the Italics part.

\*this is italics\* and this is not

Adding a blockquote for some code or special text.

> Hey this is harsh

Adding links.

[My site](https://harshblog.xyz) <!-- displaying title according to us on hover in link --> [My site](https://harshblog.xyz "this is title")

Adding an unordered list.

Adding an ordered list.

Adding Inline code block.

`<p1> this is inline</p>`

Adding an image.

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

Some essentials for GitHub.

Large code blocks.

```bash this is a code block ``` ```javascript function(){ alert("printing something") } ``` ```python def add(): return "add" ```

Adding check-boxes.

* [x] completed * [x] completed * [ ] not completed

For a better view of the code, I am providing the link for the GitHub repository containing the code.

I hope you have understood this. If you have any doubts then please comment it down I would be happy to help.

Originally published at https://harshblog.xyz on April 27, 2020.

Learning skills apart from Knowledge.