change colour of text html code example Example: how to color in html <h1 style="color: red;">Hello</h1>