Check out example codes for "css border top". It will help you in understanding the concepts better.

Code Example 1

.topBorder {
  /*        width style color  */
  border-top: 5px solid black;
}

Learn ReactJs, React Native from akashmittal.com