Markdown is a lightweight markup language that allows you to format text using simple syntax. This guide covers the essential Markdown elements you'll use most frequently.
Use hash symbols (#) to create headers. The number of hashes determines the header level:
# Header 1 (Largest) ## Header 2 ### Header 3 #### Header 4 ##### Header 5 ###### Header 6 (Smallest)
**Bold text** _Italic text_ **_Bold and italic_**
Bold text
Italic text
Bold and italic
~~Strikethrough text~~
Strikethrough text
Use dashes (-
), asterisks (*
)
- Item 1 - Item 2 - Nested item - Another nested item - Item 3 * Item 4
Use numbers followed by period and space:
1. First item 2. Second item 1. Nested numbered item 2. Another nested item 3. Third item
Create links using square brackets for text and parentheses for URL:
[Link text](https://example.com) [Link text](https://example.com "Optional title") <!-- Example --> [Portfolio Link](https://www.bidursapkota.com.np/)
Similar to links but with an exclamation mark at the beginning:
  <!-- Example --> 
Use single backticks for inline code
`inlilne code` <!-- Example --> Add internal JavaScript using `<script>` tag
Add internal JavaScript using <script>
tag
Use triple backticks for code blocks:
```javascript function add(a, b) { return a + b; } ```
function add(a, b) { return a + b; }
Use the greater than symbol (>) for blockquotes:
> This is a blockquote. > It can span multiple lines. > > > This is a nested blockquote.
This is a blockquote. It can span multiple lines.
This is a nested blockquote.
Create tables using pipes (|) and dashes (-):
| Header 1 | Header 2 | | -------- | -------- | | Cell 1 | Cell 2 | | Cell 4 | Cell 5 |
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Cell 4 | Cell 5 |
Use colons (:
) to align columns:
| Left-aligned | | :----------- | | Left |
Left-aligned |
---|
Left |
| Center-aligned | | :------------: | | Center |
Center-aligned |
---|
Center |
| Right-aligned | | ------------: | | Right |
Right-aligned |
---|
Right |
Create horizontal lines using three dashes
---
<br>
tag as wellparagraph 1 <br> paragraph 2 paragraph 3 paragraph 4 <!-- without two space in end --> **Bold text** _Italic text_ <!-- with two space in end --> **Bold text** _Italic text_
paragraph 1
paragraph 2
paragraph 3 paragraph 4
Bold text Italic text
Bold text
Italic text
Use backslash (\
) to escape special characters:
\_This will not be italic\_ \# This will not be a header
_This will not be italic_
# This will not be a header
You can use HTML tags within Markdown when needed:
This is <mark>highlighted text</mark>. <br> This creates a line break.
This is highlighted text.
This creates a line break.
- all heading text is converted to lowercase letters
- remove all special characters
- replace space by hyphen (
-
)
## Table of content 1. [HTML, CSS & Js](#html-css--js) ### HTML, CSS & Js <!-- all letters to lowercase --> <!-- removed special characters & and , --> <!-- replaced space by hyphen -->