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

Code Example 1

p::before {
  color: blue;
}

Learn ReactJs, React Native from akashmittal.com