The HTML style attribute is used to add styles to an element, such as color, font, size, and more.
<tagnamestyle="property:value;">
<bodystyle="background-color:powderblue;"> <h1>This is a heading</h1> <p>This is a paragraph.</p><!-- Set background color --> <h1style="background-color:powderblue;">This is a heading</h1> <pstyle="background-color:tomato;">This is a paragraph.</p><!-- Text Color --> <h1style="color:blue;">This is a heading</h1> <pstyle="color:red;">This is a paragraph.</p><!-- Fonts --> <h1style="font-family:verdana;">This is a heading</h1> <pstyle="font-family:courier;">This is a paragraph.</p><!-- Text Size --> <h1style="font-size:300%;">This is a heading</h1> <pstyle="font-size:160%;">This is a paragraph.</p><!-- Text Alignment --> <h1style="text-align:center;">Centered Heading</h1> <pstyle="text-align:center;">Centered paragraph.</p></body>