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

Code Example 1

<div style="background-color:lightblue">
  <h3>This is a heading</h3>
  <p>This is a paragraph.</p>
</div>

Code Example 2

div {  display: block;}

Learn ReactJs, React Native from akashmittal.com