The process by which cells become specialized to perform specific functions within the developing embryo.