During the development of an organism, from a single fertilized egg into adult form, cells become specialized through a process called differentiation.
During differentiation, genes that are activated determine the type of cell it will become. I hope that's what you need