Check out example codes for "css id selector". It will help you in understanding the concepts better.

Code Example 1

<style>
  #selector {
  color: red;
}
/* # is id selector */
</style>


<div id="selector">
<p>This is an id</p>
</div>

Code Example 2

#id{
    color:red;
}

Code Example 3

/*put a # infront of the id*/
/*<section id="example"></section>*/
#example{
	margin: auto;
}

Learn ReactJs, React Native from akashmittal.com