What attribute and value can you use to cause an element to open the link in a new browser tab?
Asked
Active
Viewed 1,282 times
-2
-
1What does Google tell you? – devlin carnate Apr 21 '21 at 22:48
-
[How much research effort is expected of Stack Overflow users?](https://meta.stackoverflow.com/questions/261592/how-much-research-effort-is-expected-of-stack-overflow-users) – charlietfl Apr 21 '21 at 22:56
2 Answers
0
To open a link in a new tab you need to add target="_blank" to the anchor tag.
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a/" target="_blank">Mozilla</a>
Mozilla

Daniel
- 1,392
- 1
- 5
- 16
0
You can use with the attribute target
<a href="https://www.youtube.com/" target="_blank">The page will open in another tab.</a>

Dicsok Gabriel
- 13
- 3