DEV Community

Vishwas R
Vishwas R

Posted on

2 1

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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay