- Attribute of
- <base> HTML Tag
- What does
<base target=""> HTML Attributedo?
- Specifies the default target value for all anchor links in the current document.
<head> . . . <base target="_blank">
Opening all Links in a New Tab
target attribute to
_blank in the
<base> element will cause all on-page links to open in a new tab. You should think carefully before implementing this, as your users may or may not appreciate this behavior.
Opening only outbound links in a new tab
If you only want outbound links (links to a different domain) to open in a new window, you should not use the