×

Save Your Code

If you click the save button, your code will be saved, and you get an URL you can share with others.

By clicking the "Save" button you agree to our terms and conditions.

Report Error

×

Save to Google Drive

If you have a Google account, you can save this code to your Google Drive.

Google will ask you to confirm Google Drive access.

×

Open from Google Drive

If you have saved a file to Google Drive, you can open it here:

Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<head>
<style>
h2 {
  outline-style: solid;
  outline-color: coral;
}
div.a {
  outline-style: solid;
  outline-color: coral;
}
div.b {
  border: 1px solid black;
  outline-style: solid;
  outline-color: coral;
}
</style>
</head>
<body>
<h1>The outline-color Property</h1>
<h2>A heading with a colored outline</h2>
<div class="a">The outline-color can be specified with a color name.</div>
<br>
<div class="b">Notice that the outline is outside of any border.</div>
<p><strong>Note:</strong> The outline-color property does not work if it is used alone. Use the outline-style property to set the outline first.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_outline-color by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:20 GMT -->
</html>
×

Report a Problem: