how to add color in html code example
Example 1: html change background color
<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">
</body>
</html>
Example 2: how to change color in html
<font color="red">This is some text!</font>
Example 3: how to color in html
<h1 style="color: red;">Hello</h1>
Example 4: how to give color to text in html
HTML color to text
<body>
<p style="color:#FF0000";>Red paragraph text</p>
</body>
Example 5: 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 6: html how to change text color
<p style="color:red;">This paragraph is red.</p>