Use the type attribute to specify the media type of the <style> tag :
The type attribute specifies the Internet media type (formerly known as MIME type) of the <style> tag.
The type attribute identifies the content between the <style> and </style> tags.
The value "text/css" indicates that the content is CSS.
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
In HTML5, the type attribute is no longer required for CSS. The default value is "text/css".
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 |