how to give color to border in html code example Example 1: border color css border: 1px solid #000000; Example 2: border-color div {border-color: coral;}