سمة الهدف <base> HTML
مثال
حدد هدفًا افتراضيًا لجميع الارتباطات التشعبية والنماذج على الصفحة:
<head>
<base target="_blank">
</head>
التعريف والاستخدام
تحدد السمة target
الهدف الافتراضي لكافة الارتباطات التشعبية والنماذج الموجودة في الصفحة.
يمكن تجاوز هذه السمة باستخدام
target
السمة لكل ارتباط تشعبي / نموذج.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<base target="_blank|_self|_parent|_top">
قيم السمات
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 |
❮ علامة HTML <base>