how to set font colors in html class code example Example: html how to change text color <p style="color:red;">This paragraph is red.</p>