The study of how cells become specialized into specific types of cells, such as neurons, liver cells, or skin cells.