xxxxxxxxxx
<body>
<p style="color:#FF0000";>Roses are red</p>
<p style="color:#800080";>Violets are blue</p>
</body>
xxxxxxxxxx
<body>
<!-- style color (hex color) + the text -->
<h1 style ="color: #000000; "> Apples <em>is a tech company</em></h1>
</body>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>Change Font Color Example</title>
</head>
<body>
<h1 style="color: red;">Hello, World!</h1>
</body>
</html>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<style>
.red-text {
color: red;
}
</style>
</head>
<body>
<h1 class="red-text">Hello, World!</h1>
<p>This is a paragraph with a different color.</p>
</body>
</html>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<style>
.myText {
color: red;
}
</style>
</head>
<body>
<p class="myText">This text will be red.</p>
<p>This text will have the default color.</p>
</body>
</html>