Html opening a link on a new tab

By default when you use the ‘a href’ tag in a Html document the link opens up in the same tab. Sometimes we might not want that and we may want to open it in a new tab. There is an attribute called ‘target’ which helps in this purpose. 

One has to just write <a href=”” target=”_blank”></a>

And this would launch a link on a new tab

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s