HTML <source> نوع السمة
مثال
استخدام سمة النوع:
<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) لمورد الوسائط.
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم السمة بشكل كامل.
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>