Check out example codes for "how to write multiple style in html". It will help you in understanding the concepts better.

Code Example 1

<h1 style="color:blue;text-align:center">This is a header</h1>
<p style="color:green">This is a paragraph.</p>

Learn ReactJs, React Native from akashmittal.com