Arachnids (/əˈræknɪdz/) are a class (Arachnida) of joint-legged invertebrate animals (arthropods), in the subphylum Chelicerata. Almost all adult arachnids have eight legs, although the front pair of legs in some species has converted to a sensory function, while in other species, different appendages can grow large enough to take on the appearance of extra pairs of legs. The term is derived from the Greek word ἀράχνη (aráchnē), from the myth of the hubristic human weaver Arachne who was turned into a spider. Spiders are the largest order in the class, which also includes scorpions, ticks, mites, harvestmen, and solifuges. In 2019, a molecular phylogenetic study also placed horseshoe crabs in Arachnida. Almost all extant arachnids are terrestrial, living mainly on land. However, some inhabit freshwater environments and, with the exception of the pelagic zone, marine environments as well. They comprise over 100,000 named species. Almost all adult arachnids have eight legs, and arachnids may be easily distinguished from insects by this fact, since insects have six legs. However, arachnids also have two further pairs of appendages that have become adapted for feeding, defense, and sensory perception. The first pair, the chelicerae, serve in feeding and defense. The next pair of appendages, the pedipalps, have been adapted for feeding, locomotion, and/or reproductive functions. In Solifugae, the palps are quite leg-like, so that these animals appear to have ten legs. The larvae of mites and Ricinulei have only six legs; a fourth pair usually appears when they moult into nymphs. However, mites are variable: as well as eight, there are adult mites with six or even four legs. Arachnids are further distinguished from insects by the fact they do not have antennae or wings. Their body is organized into two tagmata, called the prosoma, or cephalothorax, and the opisthosoma, or abdomen. The cephalothorax is derived from the fusion of the cephalon (head) and the thorax, and is usually covered by a single, unsegmented carapace. The abdomen is segmented in the more primitive forms, but varying degrees of fusion between the segments occur in many groups. It is typically divided into a preabdomen and postabdomen, although this is only clearly visible in scorpions, and in some orders, such as the Acari, the abdominal sections are completely fused. A telson is present in scorpions, where it has been modified to a stinger, and in the Schizomida, whip scorpions and Palpigradi. Like all arthropods, arachnids have an exoskeleton, and they also have an internal structure of cartilage-like tissue, called the endosternite, to which certain muscle groups are attached. The endosternite is even calcified in some Opiliones. Most arachnids lack extensor muscles in the distal joints of their appendages. Spiders and whipscorpions extend their limbs hydraulically using the pressure of their hemolymph. Solifuges and some harvestmen extend their knees by the use of highly elastic thickenings in the joint cuticle. Scorpions, pseudoscorpions and some harvestmen have evolved muscles that extend two leg joints (the femur-patella and patella-tibia joints) at once. The equivalent joints of the pedipalps of scorpions though, are extended by elastic recoil. There are characteristics that are particularly important for the terrestrial lifestyle of arachnids, such as internal respiratory surfaces in the form of tracheae, or modification of the book gill into a book lung, an internal series of vascular lamellae used for gas exchange with the air. While the tracheae are often individual systems of tubes, similar to those in insects, ricinuleids, pseudoscorpions, and some spiders possess sieve tracheae, in which several tubes arise in a bundle from a small chamber connected to the spiracle. This type of tracheal system has almost certainly evolved from the book lungs, and indicates that the tracheae of arachnids are not homologous with those of insects. Further adaptations to terrestrial life are appendages modified for more efficient locomotion on land, internal fertilisation, special sensory organs, and water conservation enhanced by efficient excretory structures as well as a waxy layer covering the cuticle.