html how to change text color code example

Example 1: text color html

<!-- If you want a color on a specific text, use this : -->
<p style="color:---"> Text <p>
  
<!-- Here an exemple if you want a blue text-->
<p stlye="color:blue"> Romuald <p>
  
<!-- If you want a specific class in a color, use css, its better-->

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 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 5: html how to change text color

<p style="color:red;">This paragraph is red.</p>

Example 6: how to change font colour in html

<font color="red">
  
	Lorem Ipsum
  
</font>

Tags:

Misc Example