The study of how genes control the development of embryos and their differentiation into different cell types.