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

Set outline style as a dashed line with CSS


To set the outline style as a dashed line, use the outline-style property with the value dashed

Example

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:6px;outline-style:dashed;">
         This text is having 6px dashed outline.
      </p>
   </body>
</html>