CSS – Cascading Style Sheet
In this lecture you will learn what is inline style in CSS, it may be used to apply a unique style for a single html element on HTML page, its hard to maintain complete pages where you are applying this single line stylesheets.
To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.
for instance inline css examples with source code here:
This is a heading
This is a paragraph.
in the above shown example applied inline css to a html h1 and p tag elements, in this example source code h1 tag is applied on style attribute with parameters of color and text-align both are having with their values.
similarly second one p tag of html element is also applied for internal css style of color parameter with color: red value