HTML <a> မှာ Attribute လို့ ရိုက် ထည့်ပါ။
ဥပမာ
အမျိုးအစား attribute သည် ချိတ်ဆက်ထားသောစာရွက်စာတမ်း၏ မီဒီယာအမျိုးအစားကို သတ်မှတ်သည်-
<a href="https://www.w3schools.com" type="text/html">W3Schools</a>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက်သည် ချိတ်ဆက်ထားသော စာရွက်စာတမ်း ၏ type
အင်တာနက် မီဒီယာ အမျိုးအစား (ယခင် MIME အမျိုးအစား) ကို သတ်မှတ်သည်။
ရည်ညွှန်းချက်သတ်မှတ်ထားမှသာ ဤ attribute ကို အသုံးပြု href
ပါသည်။
မှတ်ချက်- ဤရည်ညွှန်းချက်သည် အကြံပြုချက်သက်သက်ဖြစ်သည်။
Browser ပံ့ပိုးမှု
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
အထားအသို
<a type="media_type">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
media_type | The Internet media type of the linked document. Look at IANA Media Types for a complete list of standard media types. |
❮ HTML <a> တဂ်