Usage of border-color property in CSS


The border-color property specifies the color of a border. You can try to run the following code to implement the border-color property:

Example

<html>
   <head>
      <style>
         p.demo {
            border:2px dashed;
            border-color:#800000;
         }
      </style>
   </head>
   <body>
      <p class = "demo">
         Example showing border color property
      </p>
   </body>
</html>

Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician

Updated on: 31-Jan-2020

75 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements