Description:

The HTML <style> tag is used for declaring style sheets within the head of your HTML document.

Example Code:
<html>
<head>
<style type="text/css">
h1 { color:#800000 }
</style>
</head>

<body>
<h1>The &lt;style&gt; tag in action</h1>
</body>

</html>
Result:

Attributes:
Attribute Definition
type Specifies the style sheet language as a content-type (MIME type).
media Specifies the device the document will be displayed on. Possible values:
  • all
  • braille
  • print
  • projection
  • screen
  • speech
Global Attributes:

The <style> tag also supports the Global Attributes in HTML5

Event Attributes:

The <style> tag also supports the Event Attributes in HTML5