Markdown Syntax

Headings ๐Ÿ˜

# Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4
##### Heading level 5
###### Heading level 6

Paragraphs ๐Ÿ˜‰

I really like using Markdown.

I think I’ll use it to format all of my documents from now on.

Line Breaks ๐Ÿ˜จ

This is the first line.
And this is the second line.

Emphasis ๐Ÿ˜ณ

You can add emphasis by making text bold or italic.

Bold ๐Ÿ˜จ

To bold text, add two asterisks or underscores before and after a word or phrase. To bold the middle of a word for emphasis, add two asterisks without spaces around the letters.

I just love **bold text**. I just love __bold text__.

I just love bold text.

I just love bold text.

Loveisbold

Italic ๐Ÿ˜ช

To italicize text, add one asterisk or underscore before and after a word or phrase. To italicize the middle of a word for emphasis, add one asterisk without spaces around the letters.

Italicized text is the cat’s meow.

Italicized text is the cat’s meow.

Acatmeow

Bold and Italic ๐Ÿ˜Ž

To emphasize text with bold and italics at the same time, add three asterisks or underscores before and after a word or phrase. To bold and italicize the middle of a word for emphasis, add three asterisks without spaces around the letters.

This text is really important.

This text is really important.

This text is really important.

This text is really important.

This is reallyveryimportant text.

Blockquotes โ“

To create a blockquote, add a > in front of a paragraph.

Dorothy followed her through many of the beautiful rooms in her castle.

Lists ๐ŸŽถ

You can organize items into ordered and unordered lists.

Ordered Lists ๐Ÿ’ฅ

To create an ordered list, add line items with numbers followed by periods. The numbers donโ€™t have to be in numerical order, but the list should start with the number one.

  1. First item

  2. Second item

  3. Third item

  4. Fourth item

  5. First item

  6. Second item

  7. Third item

    1. Indented item
    2. Indented item
  8. Fourth item

Unordered Lists โญ

  • First item
  • Second item
  • Third item
  • Fourth item
  • First item
  • Second item
  • Third item
  • Fourth item
  • First item
  • Second item
  • Third item
  • Fourth item
  • First item
  • Second item
  • Third item
    • Indented item
    • Indented item
  • Fourth item

Adding Elements in Lists ๐Ÿ‘Š

To add another element in a list while preserving the continuity of the list, indent the element four spaces or one tab, as shown in the following examples.

Paragraph ๐Ÿ’ช

  • This is the first list item.

  • Here’s the second list item.

    I need to add another paragraph below the second list item.

  • And here’s the third list item.

Bloquotes ๐Ÿƒโ€โ™‚๏ธ

  • This is the first list item.

  • Here’s the second list item.

    A blockquote would look great below the second list item.

  • And here’s the third list item.

Code Blocks ๐Ÿ’Œ

  1. Open the file.

  2. Find the following code block on line 21:

    <html>
      <head>
        <title>Test</title>
      </head>
    
  3. Update the title to match the name of your website.

Images โ„๏ธ

  1. Open the file containing the Linux mascot.

  2. Marvel at its beauty.

    Tux, the Linux mascot

  3. Close the file.

Code ๐Ÿฎ

To denote a word or phrase as code, enclose it in backticks (`).

At the command prompt, type nano.

Escaping Backticks ๐Ÿ—

If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks (``).

Use `code` in your Markdown file.

Code Blocks ๐Ÿ’

<html>
  <head>
  </head>
</html>

Horizontal Rules ๐Ÿ”

To create a horizontal rule, use three or more asterisks (***), dashes (—), or underscores (___) on a line by themselves.




To create a link, enclose the link text in brackets (e.g., [Duck Duck Go]) and then follow it immediately with the URL in parentheses (e.g., (https://duckduckgo.com)).

My favorite search engine is Duck Duck Go.

Adding Titles ๐Ÿณ

You can optionally add a title for a link. This will appear as a tooltip when the user hovers over the link. To add a title, enclose it in parentheses after the URL.

My favorite search engine is Duck Duck Go.

URLs and Email Addresses ๐Ÿ’

To quickly turn a URL or email address into a link, enclose it in angle brackets.

https://www.markdownguide.org fake@example.com

Images ๐ŸŒ“

To add an image, add an exclamation mark (!), followed by alt text in brackets, and the path or URL to the image asset in parentheses. You can optionally add a title after the URL in the parentheses.

Philadelphia’s Magic Gardens. This place was so cool!

Linking Images ๐ŸŒน

To add a link to an image, enclose the Markdown for the image in brackets, and then add the link in parentheses.

An old rock in the desert

Syntax Description
Header Title
Paragraph Text
Go Home