Dorsal and ventral are paired anatomical terms used to describe opposite locations on a body that is in the anatomical position. The anatomical position of a human body is defined as a body standing upright with the head facing forward, arms down at the sides with the palms turned forward, and feet parallel facing forward. On a human body, dorsal refers to the back, or posterior, portion of the body, whereas ventral, or anterior, refers to the front part of the body.
The terms dorsal and ventral are also often used to describe the relative location of a body part. For example, the stomach is ventral to the spinal cord, meaning the stomach is located in front of the spinal cord. Similarly, the scapulae are dorsal to the ribs.
Now, for certain parts of the body, including the penis and feet, the uses of ventral and dorsal differ from the standard definition. For instance, the dorsal part of the penis is the side closest to the abdomen when erect. Similarly, for the feet, the dorsal side is the top of the foot, or the area facing upwards when standing upright.