HTML <area> target attribute

Definition and Usage

target The attribute specifies the location of the linked document to be opened.

Only if href attribute when using.

Example

Use a target attribute to specify the location of the linked document 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="Mercurio">
<area shape="circle" coords="228,230,5" href="venus.html" alt="Venus">
</map>

Experimente você mesmo

Sintaxe

<area target="_blank|_self|_parent|_top|framename">

Valor do atributo

Valor Descrição
_blank Abra o documento linkado em uma nova janela ou guia.
_self Abra o documento linkado na mesma caixa que o clique (padrão).
_parent Abra o documento linkado na janela inteira.
_top Abra o documento linkado na janela inteira.
framename Abra o documento linkado no iframe especificado.

Suporte de navegador

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Suporte Suporte Suporte Suporte Suporte