DEV Community

Vishwas R
Vishwas R

Posted on

How to add title to Markdown Links & Images?

It's very important to add title to links & images. But in many blogs / websites, they accept markdown & not everyone are aware of or it's not so easy to find how to add title in markdown content. But it's pretty simple to add title in markdown content. Passing a string along with the link or image works in such scenario. Below is an example.

//Add title to the links
[Open Google](https://google.com/ "Open Google")

//Add title to images
![alt text](image-url.png "Image Title")
Enter fullscreen mode Exit fullscreen mode

Unfortunately, not all websites accepts & shows title. Some of them ignores the string passed whereas it works on GitHub. Many md cheat-sheets miss out adding this but seems helpful.

Top comments (0)