The study of the structure and organization of the nervous system, including the brain, spinal cord, and nerves.