You can control the color of the text on a webpage or a section (or element) of a webpage with the Cascading Style Sheets color property. Besides controlling the text color, you can also use the CSS color property to set the color for the horizontal rule and form elements. Let's take a look at an example that uses the color property to set the text within the opening <p> and closing </p> tags to black and the color for the <form> element to red. Basic CSS Code
Example
Each CSS rule contains a selector and a declaration block. The CSS declaration block is placed between opening { and closing } curly brackets and contains one or more property-value pairs for each selector. Selectors
Properties
Values
| ||||||