how to color part of a text in html code example Example: html how to change text color <p style="color:red;">This paragraph is red.</p>