Spiders have eight legs. They belong to the class Arachnida, and like almost all adult arachnids, spiders have four pairs of legs, totaling eight legs
. This distinguishes them from insects, which have six legs. The eight legs are jointed and attached to the cephalothorax (the combined head and thorax), allowing spiders to move efficiently and perform various functions such as walking, climbing, and capturing prey