Check out example codes for "css font-size". It will help you in understanding the concepts better.

Code Example 1

#selector{
    font-size:20px;
}

Code Example 2

.class {
	font-size: 12px;
}

Code Example 3

// to scale font size in relation to its parent element
style="font-size: 2vw;"

Code Example 4

p {
	font-size: 150% /*px, cm, in, etc.*/; 
}

Learn ReactJs, React Native from akashmittal.com