Borders are like a frame around content. You can control thickness, style, and color.
Block elements stretch across the page. Inline elements only take up the space of their text.
Here’s an inline span with a dotted border inside a sentence.
You can put a border just on one side (top, right, bottom, left).
Border only on top
Border only on right
Border only on bottom
Border only on left
Padding is the space inside the border, between the text and the border.