How is a spider adapted to its habitat?

It depends on it's habitat.

But it has a shell around its body called an exosceleton, which protects it from birds and so forth...

It also depends on the spider.

Most spiders catch their prey, by spinning a web with it's silk gland, which at first is a liquid but the moment it touches the air, its a long strand like human hair!

Some spiders, like the Jumping Spider, uses it's long legs as an advantage and leaps on its prey to catch it, paralizing it with its venom from its fangs.

Spiders also use camoflauge.

Thats all I know, Im only 12...