style=""

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O

The style attribute is used to apply styles to an element.

This attribute can be used in most elements.


<p style="color: red"></p>

Attribute Value Explanation
style=" " CSS code defines styles

Example


<h1 style="font-size: 140%; color: #ff0000;">The Style Attribute</h1>

Output

The Style Attribute