adding border to div css code example Example: how to add border in css .div1{ border: 10px; border-color: #000000; border-style: solid; }