Audrey
0
Q:

how to add color in html text


 <body style="background-color:powderblue;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body> 
3

  
    <font color="red">This is some text!</font>
  
 
0
HTML
<body>
  <p style="color:#FF0000";>Red paragraph text</p>
</body>
3
<p style="color:red;">This paragraph is red.</p>
2
<!-- 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-->
4

    <p style="font-family:verdana">This is a paragraph.</p>
<p 
    style="font-family:'Courier New'">This is another paragraph.</p>
 
6
<body>
  <h2 style="color: tomato;">
   THIS TEXT WILL BE IN TOMATO COLOR
  </h2>
</body>
3

<!DOCTYPE html>
<html>
<head>
<style>

 body {background-color: powderblue;}
h1   {color: blue;}
p    {color: red;}

</style>
</head>
<body>

<h1>This is a 
 heading</h1>
<p>This is a paragraph.</p>

</body>
</html> 
3
HTML color to text
<body>
  <p style="color:#FF0000";>Red paragraph text</p>
</body>
0

New to Communities?

Join the community