CSS color property is used to set or change text color of any html element.
<html>
<head>
<style type="text/css">
#dv{
color:green;
}
</style>
</head>
<body>
<div id="dv">
Hello world
</div>
</body>
</html>
With color property, we can specify colors in different forms like:
- color name
- Hex Value
- RGB Value