@srinik said in How to Add rel="nofollow" to Links?:

But, you know as per SEO one should use nofollow tag for unnecessary links.

What's an unnecessary link? I think that the best approach is to eliminate unnecessary links, rather than linking and then trying to hurt their SEO after having utilized them as a reference.