text color in html

Hello developers! In this post I have shared the details about “text color in html”. Okay, let’s move on to the article.

text color in 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-->
<span style="font-size:20px;"></span>
<p style="color:blue;">This paragraph is blue.</p>
HTML color to text
<body>
  <p style="color:#FF0000";>Red paragraph text</p>
</body>
<p style="color: red;">This is paragraph in RED color</p>
<body>
  <p style="color:#FF0000";>Red paragraph text</p>
</body>

Final Words

I hope this article helps you to know about “text color in html”. If you have any doubts regarding this tutorial please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment