How to set hyperlinks so they open in a new browser tab?


#1

What is the proper syntax to make hyperlinks open in a new browser tab so the original page stays open?

Let’s say the code for the link is:

<a href="http://www.dreamhost.com/"><strong>DreamHost</strong></a>

I saw helper saying to add “” to get a hyperlink in a page to open in a new tab. But I am not sure where to put this in the code of the hyperlink.

Thanks


#2

The information you read is incorrect (or, at least, severely misleading). Using a tag will affect all tags in the page.

The correct way to do this is:


#3

Excellent! Thanks. That worked great.