HTML <stil> türü Özellik
Örnek
<style> etiketinin ortam türünü belirtmek için type niteliğini kullanın:
<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
Tanım ve Kullanım
Öznitelik , etiketin type
İnternet medya türünü (önceden MIME türü olarak bilinirdi) belirtir .<style>
Nitelik , ve
etiketleri type
arasındaki içeriği tanımlar .
<style>
</style>
Varsayılan değer, içeriğin CSS olduğunu gösteren "text/css" dir.
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
<style type="media_type">
Özellik Değerleri
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> etiketi