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

Code Example 1

<div>
  <!-- This is opening of a division tag-->
</div>

Code Example 2

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

Code Example 3

<div class="" id=""></div>

Code Example 4

<div></div>

Code Example 5

//div tag

<div>
	//content
  	
</div>

//a div is an invisible box

Code Example 6

The <div> tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections.
 The div can be used for reading purposes or to nest all the information inside the div then to style the div through css as a background card.

Learn ReactJs, React Native from akashmittal.com