border-top-colorSet the color of the element's top border. Note: You must define a width and style if you want the border to display. Using border-color by itself will not draw a border. Value | Description | color | Hexadecimal - a pound sign (#) followed by at most 6 hex values(0-F).
RGB - individual values for Red, Green, and Blue.
color term - sets the color using names. i.e. red, orange, white, etc. |
Code:p { border-top-color: red;
border-top-width: 3px;
border-top-style: dashed; } Display:This element has a border-top-color defined. |