Check out example codes for "change h1 color in html". It will help you in understanding the concepts better.

Code Example 1

<h1 style="color:blue;">This is a heading</h1>

 <p style="color:red;">This is a paragraph.</p>

Code Example 2

<body style="background-color:powderblue;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>

Learn ReactJs, React Native from akashmittal.com