Spiders are arachnids, which have eight legs, distinguishing them from insects (six legs). This is a fundamental characteristic of the arachnid class. The other options (4, 6, 10) are incorrect - 6 legs is for insects, while 4 and 10 legs don't match any major arthropod group.