Run ยป
<!DOCTYPE html> <html> <head> <style> p.dotted {border-style: dotted;color:green;} p.dashed {border-style: dashed;color:green;} p.solid {border-style: solid;color:red;} p.double {border-style: double;color:green;} </style> </head> <body> <h2>The border-style Property with color</h2> <p>This property specifies what kind of border to display with color:</p> <p class="dotted">A dotted border.</p> <p class="dashed">A dashed border.</p> <p class="solid">A solid border.</p> <p class="double">A double border.</p> </body> </html>