The process through which a species adapts to its surroundings is known as adaptation.
Natural selection has acted on heritable variation over numerous generations to produce it.
Organisms adapt to their surroundings in a multitude of ways, including their structure, physiology, genetics, movement or dispersion, and other factors.
For example, giraffes have long necks for eating on the tops of trees.
Habitat:
The term habitat refers to the collection of resources and physical and biological conditions that exist in a certain region in order to sustain a species existence and reproduction.
The habitat of a species may be thought of as the physical expression of its biological area.
i) Terrestrial habitat:
The plants and animals that dwell on land are considered to reside in terrestrial ecosystems.
Forests, grasslands, deserts, coastal, and alpine areas are examples of terrestrial ecosystems.
ii) Aquatic habitat:
Aquatic habitats are the habitats of plants and animals that live in water.
Aquatic ecosystems include ponds, marshes, lakes, rivers, and seas.