display color using color code in html code example Example: how to color in html <h1 style="color: red;">Hello</h1>