How to use style attribute to define style rules?

JavascriptWeb DevelopmentFront End Scripts

You can use style attribute of any HTML element to define style rules. These rules will be applied to that element only. Here is the generic syntax:

<element style = " rules....">

The following is an example:

      <p style = "color:#36C;"> This is inline CSS </p>
Published on 13-Apr-2018 07:47:49