The cephalic portion of the primordial digestive tube in the embryo. From its endoderm arises the epithelial lining of the pharynx, trachea, lungs, esophagus, and stomach, the first part and cranial half of the second part of the duodenum, and the parenchyma of the liver, gallbladder, and pancreas. SYN: headgut.