How to create links with ‘target=”_blank”‘ in Markdown?

Spread the love

Sometimes, we want to create links with ‘target="_blank"’ in Markdown.

In this article, we’ll look at how to create links with ‘target="_blank"’ in Markdown.

How to create links with ‘target="_blank"’ in Markdown?

To create links with ‘target="_blank"’ in Markdown, we add an HTML a element.

For instance, we write

<a href="http://example.com/" target="_blank">Hello, world!</a>

in our Markdown code to add a link that has the target attribute set to _blank.

Then a link will be rendered and it’ll open a new tab when we click it.

Conclusion

To create links with ‘target="_blank"’ in Markdown, we add an HTML a element.

Leave a Reply

Your email address will not be published.