Amphibians exhibit two main types of parental care: protection of eggs/young through nests/shelters, and direct caring behaviors. For protection, many frogs lay eggs near water in moist habitats and defend the eggs or territories. Some frogs have direct development where eggs hatch into small frogs. Others make foam, mud, or gelatinous nests. For direct care, some species coil around eggs, transport tadpoles to water, glue eggs to their bodies, carry eggs on their backs, or use vocal sacs or viviparity to brood eggs. Parental care helps offspring develop and avoid predators until independence.