Attributo HTML <base> href
Esempio
Specifica un URL di base per tutti gli URL relativi su una pagina:
<head>
<base href="https://www.w3schools.com/images/">
</head>
Definizione e utilizzo
L' href
attributo specifica l'URL di base per tutti gli URL relativi su una pagina.
Supporto del browser
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Sintassi
<base href="URL">
Valori di attributo
Value | Description |
---|---|
URL | An absolute URL that acts as the base URL (like "http://www.example.com/") |
❮ Tag HTML <base>