border-color: black : border color « CSS « HTML / CSS






border-color: black

  






<html>
<head>
<title>Box Model Basics</title>
<style>
body {font-size: 1.5em;}

p {background-color: white;
   text-align: center;
   border-color: black;
   border-style: solid;}
   </style>
</head>
<body>
<p>the &lt;p&gt; element.</p>
<p>second &lt;p&gt; element.</p>
</body>
</html>

   
  








Related examples in the same category

1.You can individually change the color of the bottom, left, top and right sides of a box's border using the properties:
2.'border-color' Example
3.border-color: blue
4.border-color: red;