The answer is: Hox genes; anterior-posterior axis.
Animals have a “toolkit” called the Hox genes that regulates the anterior-posterior axis of the developing embryo. Hox genes are a group of genes that regulate the development of anterior-posterior axis (head-tail axis) of the embryo. They determine the type of structures that should be formed on the given segment.