HTML Styles Examples


The HTML Styles is one type of HTML attribute. This attribute using we can apply Cascading Style Sheet (CSS). so it is called inline style. you can see below the following example.

Syntax
<tagname style="property:value;">
Example
<p style = "color:red;">Hello world</p>
Output

Hello world

If you want to know about types of stylesheet then you can read our CSS types article.