![]() |
VOOZH | about |
In HTML, this can be easily achieved using the 'target' attribute of the anchor ('<a>') tag. By setting 'target="_blank"', you instruct the browser to open the linked document in a new tab or window. This approach is widely used in web development to provide seamless navigation and improve the accessibility of external links or supplementary content.
<a target="_blank" rel="relation_name" href="link">Link Name</a>Syntax
<a target="target_name" rel="relation_name" href="link">Link Name</a>Note: Here, the rel attribute is used to describe the relation between the current document and the linked document and the target attribute is used to specify the target link.
Example 1: Here, target=”_blank” is used to open a hyperlink in a new tab.
Output
Example 2: Here, rel=”noopener noreferrer” is used as a security measure.
Output