CSS border-top Property

The css border-top property is the shorthand property that defines the border-width, border-style and border-color of an element’s top border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the top border — border-top-width, border-top-style and border-top-color.

Syntax for border-top property

[ border-width || border-style || 'border-top-color' ] | inherit