HTML Tip: Automatically open all links in new tab in HTML

Jyotishman Saikia - Jun 27 '21 - - Dev Community

Did you get tired of manually adding target="_blank" in all the tags in your HTML webpage?
or
Have you ever forgotten to add target="_blank" in all the tags in your HTML webpage?

Well, there is a native HTML tag to handle such cases automatically. You don't need to manually add target="_blank" in all the tag.

Just add target="_blank" in the base tag, it will open in a new tab for all the link present in the webpage.

I post very frequently on twitter related to frontend tips.
Support my content by following on
Twitter - https://twitter.com/frontend_jsx
Instagram - https://www.instagram.com/frontend.jsx/

. . . . . . . . . . . . . . . . . . . . .