Use the type attribute to specify the MIME type of the style:
![]()
The type attribute is supported in all major browsers.
The type attribute specifies the MIME type of the style sheet.
The type attribute identifies the content between the <style> and </style> tags.
The value "text/css" indicates that the content is CSS.
In HTML5, the type attribute is no longer required. Default value is "text/css".
| Value | Description |
|---|---|
| MIME_type | The MIME type of the style sheet. For now, the only supported value is "text/css". Look at IANA MIME types for a complete list of standard MIME types |
HTML <style> tag
Your message has been sent to W3Schools.