HTML Style Attribute
If you want to style HTML elements then we use style attribue inside HTML elements.
<h1 style="color:blue">Codes Family.</h1>
<p style="color:red">This is my code family.</p>
Background Color
We can also change background color of HTML text throuhgh HTML style attribute.
<h1 style="color:blue">Codes Family.</h1>
<p style="color:red">This is my code family.</p>
Font Size
We can change font size of HTML elements by using Style attribute according to our requirement.
<h1 style="color:blue">Codes Family.</h1>
<p style="color:red">This is my code family.</p>
Fonts
We can also change the fonts of HTML elements according to our requirement by using Style attribute.
<h1 style="font-family: sans-serif;">Codes Family.</h1>
<p style="font-family: monospace;">This is my code family.</p>
Text Alignment
We can set the alignment of text according to our requirement by using style attribute.
<h1 style="text-align: center;">Codes Family.</h1>
<p style="text-align:right;">This is my code family.</p>