HTML <area> target attribute
Definition and Usage
target
attribute specifies the location where the linked document is opened.
is only present href attribute when used.
Example
Use the target attribute to specify the location where the linked document is opened in the image map:
<map name="planetmap"> <area shape="rect" coords="0,0,114,576" href="sun.html" alt="Sun" target="_blank"> <area shape="circle" coords="190,230,5" href="mercur.html" alt="Mercury"> <area shape="circle" coords="228,230,5" href="venus.html" alt="Venus"> </map>
Syntax
<area target="_blank|_self|_parent|_top|framename">
Attribute Value
Value | Description |
---|---|
_blank | Open the linked document in a new window or tab. |
_self | Open the linked document in the same frame as the click (default). |
_parent | Open the linked document in the entire window. |
_top | Open the linked document in the entire window. |
framename | Open the linked document in the specified iframe. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |