Check out example codes for "How do you make each word in a text start with a capital letter?". It will help you in understanding the concepts better.

Code Example 1

/*
The text-transform property controls the capitalization of text.
*/

CSS Syntax
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;

/*
none		-> No capitalization. The text renders as it is. This is default	
capitalize	-> Transforms the first character of each word to uppercase	
uppercase	-> Transforms all characters to uppercase	
lowercase	-> Transforms all characters to lowercase	
initial	    -> Sets this property to its default value. Read about initial	
inherit	    -> Inherits this property from its parent element. Read about inherit
*/

Example
Transform text in different <div> elements:

div.a {
  text-transform: uppercase;
}

div.b {
  text-transform: lowercase;
}

div.c {
  text-transform: capitalize;
}

/* For more you can refer https://www.w3schools.com/cssref/pr_text_text-transform.asp*/

Code Example 2

h1 {
  text-transform: capitalize;
}

Learn ReactJs, React Native from akashmittal.com