Check out example codes for "html font white text with black border". It will help you in understanding the concepts better.

Code Example 1

h1 {
  text-shadow: 1px 1px #ffffff;
}

Code Example 2

h1 {
    color: yellow;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
<h1>Hello World</h1>

Learn ReactJs, React Native from akashmittal.com