HTML <style> type attribute
HTML <style> tag
Example
Use of the type attribute in a <style> tag:
<html>
<head>
<style type="text/css">
h1 {color:red}
p {color:blue}
</style>
</head>
<body>
<h1>Header 1</h1>
<p>A paragraph.</p>
</body>
</html>
|
Try it yourself!
|
Definition and Usage
The required 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 standard CSS.
Browser Support
The type attribute is supported in all major browsers.
Syntax
Attribute Values
Value |
Description |
mime_type |
The MIME type of the style sheet. For now, the only possible value is "text/css" |
HTML <style> tag
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|