colored code format in html code example
Example 1: how to color in html
<h1 style="color: red;">Hello</h1>
Example 2: color in html
<!-- Color in HTML by inline-css -->
<p style="color: red; background-color: blue;">
This text is red and the background is blue
</p>