Skip to main content

Command Palette

Search for a command to run...

Basic Markdown Syntax

Published
•2 min read•View as Markdown
Basic Markdown Syntax

In simple word, Markdown is a markup language for adding formatting to a plain text using some specific syntax. We can create our markdown files with different extensions (i.e. - . markdown, .md, .mkd, .mkdown, etc). But most of the people use .md extension to their markdown file. Let’s discuss about the syntax of our markdown elements.

Heading:

# H1
## H2
### H3

preview:-

H1

H2

H3

Bold:

**this is bold text**

preview:-

this is bold text

Italic:

*this is italic text*

preview:-

this is italic text

Strikethrough:

~~1000~~

Ordered list:

1.item one
2.item two
3.item three

preview:-

  1. item one
  2. item two
  3. item three

Nested Ordered list:

1. item one
    1.1 sub-item
    1.2 sun item
2. item two
    2.1 sub item
    2.2 sub item

preview:-

  1. item one
    1. sub-item
    2. sun item
  2. item two
    1. sub item
    2. sub item

Unordered list:

-item one
-item two
-item three

preview:-

  • item one
  • item two
  • item three

Nested Unordered list:

-item one
    -sub item
    sub-item
    -sub-item
-item two
    -sub item
    -sub item

preview:-

  • item one
    • sub item
    • sub-item
    • sub-item
  • item two
    • sub item
    • sub item
[welcome to google](https://google.com)

preview:-

click here to google

Blockquote:

>example of blockquote. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna

preview:-

example of blockquote.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna

Code

code will be between (```) - this symbol 
let x = 5;
let y = 6;
let z = x + y;

preview:-

let x = 5;
let y = 6;
let z = x + y;

Horizontal Rule:

---

preview:-


Image

![image](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png)

preview:-

image

##Table


| Country    | Capital|
| ---------- | -------|
| Germany    | Berlin |
| Qatar      | Doha   |
| Cuba       | Havana |

preview:-

CountryCapital
GermanyBerlin
QatarDoha
CubaHavana

That’s all for now. We will learn more markdown syntax on later. Don’t forget to create a beautiful Readme file. Have fun! And enjoy the learning. 😊