Link attributes, title and target


I give that a title attribute as well, and for the title attribute, I’m gonna be very descriptive here, I’m gonna type in “Visit”.

target (is it bad usability?)

What if you wanted it to open up the external page in a new tab? Well, to do that, you use another attribute called target. So, towards the end of the link, after the title, I’m gonna type in target= and for this target, I’m gonna do “_blank” .

the _blank target basically tells the browser, “Hey, I want this link opened up “in a new window or a new tab,” whatever the preference is set inside that browser.

Now, I’ve read a lot of tutorials and opinions online where people are like, “Oh, this is bad usability, “Don’t do this,” that discourage people from using _blank. But there are plenty of legitimate use cases for wanting a page to open up in a new window or a new tab, so it’s really important that you understand that functionality and how to do it.



Leave a Reply

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

You are commenting using your 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