CSS · Properties — CSS Backgrounds and Borders
border-top
The CSS border-top property. Initial value: border-top-width,border-top-style,border-top-color. Not inherited.
Syntax
border-top: <line-width> || <line-style> || <color>Example
Try it
Notes
Media: visual. Applies to: allElements. Computed value: border-top-width,border-top-style,border-top-color.
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.