In a horse and most mammals, the ribs attach to the sternum through costal cartilage. Costal cartilage is a flexible, fibrous tissue that connects the ends of the ribs to the sternum. The costal cartilages of the true ribs (ribs 1–7) are directly connected to the sternum, while those of the false ribs (ribs 8–10) connect to each other and to the costal cartilage of the seventh rib. The floating ribs (ribs 11–13) are not connected to the sternum at all.
The costal cartilages allow for some movement of the ribs during respiration. When the muscles of inspiration contract, the ribs are pulled upward and outward, increasing thoracic volume and drawing air into the lungs. When expiration muscles relax, the ribs return to their resting position, decreasing volume and expelling air.
The costal cartilages also provide support for the sternum and help protect the heart, lungs, and other organs in the thoracic cavity.