Text Color is used to set color of text using CSS. Text Color property is used to set the background color or the font color of an element.
The color of the text is defined by the CSS color property.
The default text color for a page can be defined in the body html element.
Syntax:
By Hex Code,
color: #660000;
By RGB,
color:rgb(255,0,0);
By color name,
color:green;
Example :
<html>
<head>
<title>Learn Css text color tutorials</title>
</head>
<body>
<p style="color:blue">Learn Css text color tutorials by aryatechno</p>
</body>
</html>
Output :
Learn Css text color tutorials by aryatechno
Comments