Anchor type attribute
Definition and Usage
type
The attribute sets or returns the MIME type of the link type attribute Value.
type
The attribute specifies the MIME type of the linked document.
Tip:type
The attribute is purely advisory.
Note:type attribute It is a new attribute of the <a> element in HTML5.
Example
Example 1
Return the MIME type of a specific link:
var x = document.getElementById("myAnchor").type;
Example 2
Set the link's type attribute to text/html:
document.getElementById("myAnchor").type = "text/html";
Syntax
Return type attribute:
anchorObject.type
set type attribute:
anchorObject.type = MIME-type
প্রতিভার মান
মান | বর্ণনা |
---|---|
MIME-type |
লিঙ্ক ডকুমেন্টের MIME ধরনকে নির্দেশ করে দেখুন IANA MIME ধরন,মান্যমান মাইম ধরনের সমপূর্ণ তালিকা পাওয়ার জন্য |
প্রযুক্তিগত বিবরণ
ফলাফল: | শব্দমালা মান, যা লিঙ্ক ডকুমেন্টের MIME ধরনকে নির্দেশ করে。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |
সংশ্লিষ্ট পাতা
HTML সংক্ষিপ্ত হান্ডবুক:HTML <a> type অতিবিক্ষেপ