#selector{
/*The format is border:width style color;*/
border:2px solid grey;
}
p {
border-style: solid;
border-color: red;
border-width: 5px;
}
/* You can also write above code in one line */
p {
border: 5px solid red;
}
border: 1px solid #000;
a quick note on border-style shorthand:
border-style: none none dotted; --> this means:
One value: it applies the same style to all four sides.
Two values: applies to top and bottom, the second to the left and right.
Three values: applies to the top, the second to the left and right, the third to the bottom.
Four values: applies to all four sides following clockwise.
p {
border: 5px solid red;
}