The stomach has several specialized cells in its mucosa. Parietal cells secrete hydrochloric acid and intrinsic factor. Chief cells produce pepsinogen, the precursor to pepsin. Enteroendocrine cells secrete hormones like gastrin, which regulates stomach motility and secretion.