style Attribute

By: Dusty Arlia
Published on Monday, July 15, 2013, 01:27 PM
Last Updated on Wednesday, July 15, 2015 at 4:45 PM
Total Updates: 3

The style attribute provides inline style for an element. Here is the basic syntax:

<element style="[style_definitions]">

And here is an example:

<h1 style="color:red">Important Title</h1>

Inline style overrides external CSS and the <style> element that gets placed in the <head> section of a webpage.