The area behind the head of a fish, extending from the back of the skull to the origin of the dorsal fin .