The body of spiders is composed of two segments (tagms).

An excerpt from the article 28 facts about spiders

These are the cephalothorax and the abdomen, which are connected by a style. In front of the cephalothorax, there are chelicerae and behind them there are pedipalps. These are followed by the walking legs. The abdomen contains organs such as the heart, intestines, reproductive system, cotton glands, and spiracles.