change color of div border code example Example 1: border color css border: 1px solid #000000; Example 2: add color to border css div {border-color: coral;}