Attributo di destinazione HTML <base>
Esempio
Specifica una destinazione predefinita per tutti i collegamenti ipertestuali e i moduli in una pagina:
<head>
<base target="_blank">
</head>
Definizione e utilizzo
L' target
attributo specifica la destinazione predefinita per tutti i collegamenti ipertestuali e i moduli nella pagina.
Questo attributo può essere sovrascritto utilizzando l'
target
attributo per ogni collegamento ipertestuale/modulo.
Supporto del browser
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
Sintassi
<base target="_blank|_self|_parent|_top">
Valori di attributo
Value | Description |
---|---|
_blank | Opens the link in a new window or tab |
_self | Default. Opens the link in the same frame as it was clicked |
_parent | Opens the link in the parent frame |
_top | Opens the link in the full body of the window |
❮ Tag HTML <base>