HTML Styles
The HTML Style Attribute
The HTML style attribute is used to add styles to an element, such as color, font, size, and more.
Setting the style of an HTML element, can be done with the style attribute:
<tagname style="property:value;">
Example
<p style="color:red;">I am red</p> <p style="color:blue;">I am blue</p> <p style="font-size:50px;">I am big</p>
Click on the "Try it Yourself" button to see how it works.
Try it Yourself »