We can apply CSS in a single element by inline CSS technique.
The inline CSS is also a method to insert style sheets in HTML document. This method mitigates some advantages of style sheets so it is advised to use this method sparingly.
If you want to use inline CSS, you should use the style attribute to the relevant tag.
Example:Test it Now
Inline CSS is applied on this heading.
This paragraph is not affected.
Disadvantages of Inline CSS