Check out example codes for "add a background color for all h1 elements in css". It will help you in understanding the concepts better.

Code Example 1

all. h1 {background-color:#FFFFFF;}

Learn ReactJs, React Native from akashmittal.com