0

HTML

I am 100% sure there was a label in html for adding links which opened the link in a new tab and not the same tab. Anyone knows anything about it?

4th Jan 2020, 12:47 AM
Vlad
Vlad - avatar
3 Answers
+ 5
Yes, the attribute is target="_blank". For example: <a href="example.com" target="_blank">Open Link</a> It opens the link in href in a new tab.
4th Jan 2020, 12:51 AM
Jianmin Chen
Jianmin Chen - avatar
+ 5
You're right Jianmin Chen, but be careful with this: "target" is an attribute, "a" is a tag. Don't confuse them, it will help you to better understand the HTML, and for others to understand what you are talking about.
4th Jan 2020, 10:23 AM
Javier Ballesteros
Javier Ballesteros - avatar
+ 1
Ah, Morty đŸ‡ŠđŸ‡·, yes, I'll change my post to make it correct.
4th Jan 2020, 2:16 PM
Jianmin Chen
Jianmin Chen - avatar