HTML <base> href Atribut
Příklad
Zadejte základní adresu URL pro všechny relativní adresy URL na stránce:
<head>
<base href="https://www.w3schools.com/images/">
</head>
Definice a použití
Atribut href
určuje základní adresu URL pro všechny relativní adresy URL na stránce.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Syntax
<base href="URL">
Hodnoty atributů
Value | Description |
---|---|
URL | An absolute URL that acts as the base URL (like "http://www.example.com/") |
❮ HTML tag <base>