HTML <source> မှာ Attribute လို့ ရိုက် ထည့်ပါ။
ဥပမာ
အမျိုးအစား attribute ကိုအသုံးပြုခြင်း-
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက်သည် မီဒီယာအရင်းအမြစ် ၏ type
အင်တာနက်မီဒီယာအမျိုးအစား (ယခင် MIME အမျိုးအစား) ကို သတ်မှတ်ပေးသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
type | 4.0 | 9.0 | 3.5 | 4.0 | 10.5 |
အထားအသို
<source type="media_type">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
media_type | Specifies the Internet media type of the media resource. Common media types: For video:
|
❮ HTML <source> တဂ်