New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Ques
how to open a link in a new tab?
1 Answer
+ 3
target="_blank"
add this attribute to your <a> tag
it will open in new tab or window, depending on the browser and its settings.