Computer >> Computer tutorials >  >> Programming >> CSS

Set the color of the outline with CSS


The outline-color property allows you to specify the color of the outline. Its value should either be a color name, a hex color, or an RGB value, as with the color and border-color properties.

Example

You can try to run the following code to implement outline-color property −

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:thin; outline-style:solid;outline-color:blue">
         This text is having thin solid blue outline.
      </p>
      <br />
   </body>
</html>