HTML نوع <نمط> السمة
مثال
استخدم سمة النوع لتحديد نوع الوسائط لعلامة <style>:
<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
التعريف والاستخدام
تحدد السمة type
نوع وسائط الإنترنت (المعروف سابقًا باسم نوع MIME) <style>
للعلامة.
تحدد السمة type
المحتوى بين
العلامات
<style>
و .</style>
القيمة الافتراضية هي "text / css" ، مما يشير إلى أن المحتوى هو CSS.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<style type="media_type">
قيم السمات
Value | Description |
---|---|
media_type | The Internet media type of the style sheet. For now, the only supported value is "text/css". Look at IANA Media Types for a complete list of standard media types |
❮ علامة HTML <style>