Area alt attribute
Definition and usage
Alt
Attribute to set or return the area Alt attribute Value.
If the image cannot be displayed, the alt attribute specifies the alternative text for the area.
Example
Example 1
Get the alternative text for a specific area in the image map:
var x = document.getElementById("venus").alt;
Example 2
Change the alternative text for a specific area in the image map:
document.getElementById("venus").alt = "The planet Venus";
Syntax
Return alt attribute:
areaObject.alt
set alt attribute:
areaObject.alt = text
نوعیت اپنیات
مقدار | وصف |
---|---|
text | اس علاقے کا متبادل متن |
تکنیکی تفصیلات
بازگشتی مقدار: | اس علاقے کا متبادل متن کا اشارہ کرنے والا حروف زبانی مقدار |
---|
براوزر کی پشتیبانی
کروم | ایج | فائرفاکس | سافری | آپریا |
---|---|---|---|---|
کروم | ایج | فائرفاکس | سافری | آپریا |
پشتیبانی | پشتیبانی | پشتیبانی | پشتیبانی | پشتیبانی |
مربوط صفحات
HTML مراجع کتاب:HTML <area> کا alt کی اپنیات