Home | Computer Science

<
CSS Border Color

Defination

The border-color property sets the color of an element's


BORDER COLOR Syntax of Border is
h1{
border-style: ;
border-width: ;
border-color: ;
}
Different types of Border Color are
For eg:
Program
INPUT

<!DOCTYPE html> <html> <head> <style> p.color { border-style: solid; border-width: 5px; border-color: red green blue yellow; } p.one { border-style: solid; border-color: red; } p.two { border-style: solid; border-color: green; } p.three { border-style: dotted; border-color: blue; } </style> </head> <body> <p class="color">Some text.</p> <p class="one">Some text.</p> <p class="two">Some text.</p> <p class="three">Some text.</p> <p class="four">Some text.</p> </body> </html>

OUTPUT