Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML style Attribute

HTML style Attribute

HTML Global Attributes HTML Global Attributes

Example

Using the style attribute in an HTML document:

This is a heading

This is a paragraph.

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the style attribute


Definition and Usage

The style attribute specifies an inline style for an element.

The style attribute will override any global style settings, such as those in the