CSS COLOR

The color CSS property sets the foreground color value of an element’s text and text decorations, and sets the currentcolor value

The color code can be one of:

  1. Hex format: #rrggbb
  2. RGB format: rgb(red, green, blue)
  3. Name format: name

Text Color:Setting element text color

 

Example:

<p style="color: #FFF000;">Paragraph</p>

Background Color:Setting element background color

 

Example:

<p style="background: #FFF000;">Paragraph</p>

Border Color:Setting element border color

 

Example:

element { border-color: topcode rightcode bottomcode leftcode }
<p style="border-color: #FFF000;">Paragraph</p>

DOWNLOAD LATEST PROJECTS