Markdown Images

Embedding images in Markdown (linked to the HTML img tag) uses a syntax that is very similar to the link syntax, but with an exclamation mark at the beginning.

Image Syntax

To add an image, start with an exclamation mark (!), followed by alt text in brackets ([Alt text]), and the path or URL to the image in parentheses ((url)).

Images with Titles

Just like links, you can add an optional title to an image. This title is often displayed as a tooltip by browsers when the user hovers over the image.

Linking Images

If you want the image to act as a link (so that clicking it takes the user to another page), you can wrap the entire image syntax in another set of brackets and parentheses for the link.

Reference-Style Images

Just like links, you can use a reference-style syntax for images to keep your document clean.

Tips for Images