CSS Inline Style

What is Inline Style ?

  1. Inline styles are styles that are written directly in the tag on the document.
  2. Inline styles affect only the tag they are applied to.
  3. Avoid Using Inline Styling it is most worst style of writing CSS.
  4. We can assign style attribute to the HTML element and directly specify the properties and values to Element without actually defining the rule.

Complete Example of Inline Styling :



            <h1>This is H1 Heading Without Style</h1>

            This is a H1 Heading.

            This is a H2 Heading.

            This is a H3 Heading.

            This is a H4 Heading.

            This is a H5 Heading.



Output :

Inline Style Sheet Example