color गुण का उपयोग टेक्स्ट का रंग सेट करने के लिए किया जाता है। CSS में color गुण के साथ काम करना सीखने के लिए निम्न कोड चलाएं:
उदाहरण
<html>
<head>
</head>
<body>
<p style="color:blue;">
This text will be written in blue.
</p>
</body>
</html>