A tag to open in new page
You're looking for a way to open a link in a new tab or page, right?
In HTML, you can use the target
attribute to specify whether a link should open in the same window, a new window, or a new tab. Here are a few examples:
Open in same window (default behavior)
<a rel="nofollow" target="_blank" href="https://www.example.com">Example Link</a>
Open in new window
<a rel="nofollow" target="_blank" href="https://www.example.com" target="_blank">Example Link</a>
Open in new tab
<a rel="nofollow" target="_blank" href="https://www.example.com" target="_blank" rel="noopener noreferrer">Example Link</a>
The rel
attribute is optional, but it's a good practice to include it to prevent potential security issues.
You can also use the target
attribute with other values, such as:
_self
: Open in the same window (default behavior)_parent
: Open in the parent window_top
: Open in the full body of the window_blank
: Open in a new window or tab
I hope that helps!