code for changing text color in html code example
Example 1: how to change color in html
<body>
<!-- style color (hex color) + the text -->
<h1 style ="color: #000000; "> Apples <em>is a tech company</em></h1>
</body>
Example 2: html how to change text color
<p style="color:red;">This paragraph is red.</p>
Example 3: how to change font color in html
<p style="color: red;">This is paragraph in RED color</p>