Is it good to use target=_blank with <a> tag in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Is it good to use target=_blank with <a> tag in html?

give reasons to your answer

16th Feb 2019, 2:01 AM
DN Developer
DN Developer - avatar
4 Answers
+ 3
Use _blank for link to some other web site, for example you copy some content from some site and then put link to that site, in this way user will don't lose your web page, because this link will open in new tab, use _self for links on your own web page, i hope this help you :)
16th Feb 2019, 2:26 PM
PanicS
PanicS - avatar
+ 6
https://css-tricks.com/use-target_blank/ This link can surely help u.
16th Feb 2019, 2:08 AM
Arushi Singhania
Arushi Singhania - avatar
+ 4
_blank is used to go to the website with a new page.
16th Feb 2019, 7:45 AM
program
program - avatar
+ 3
Yes it's good if you want to display the output in a new tab.
17th Feb 2019, 10:24 PM
Sonic
Sonic - avatar