HTML <base> href Özelliği
Örnek
Bir sayfadaki tüm göreli URL'ler için bir temel URL belirtin:
<head>
<base href="https://www.w3schools.com/images/">
</head>
Tanım ve Kullanım
Özellik href
, bir sayfadaki tüm göreli URL'ler için temel URL'yi belirtir.
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
<base href="URL">
Özellik Değerleri
Value | Description |
---|---|
URL | An absolute URL that acts as the base URL (like "http://www.example.com/") |
❮ HTML <base> etiketi