Computer >> Computer tutorials >  >> Programming >> Javascript

Usage of border-top-color property in CSS


The border-top-color property changes the color of the top border.

Example

You can try to run the following code to implement the border-top-color property:

<html>
   <head>
      <style>
         p.demo {
            border:3px solid;
            border-top-color:#FF0000;
         }
      </style>
   </head>
   <body>
      <p class = "demo">
         Asia is a continent.
      </p>
   </body>
</html>