All 12 pairs of ribs are attaches dorsally to the vertebral column. Each rib has two articulation surfaces on its dorsal end, and hence, it is called bicephalic.
Out of 12 pairs of ribs, only first 7 pairs are attached dorsally to the thoracic vertebrae and ventrally to the sternum; they are called true or vertebrosternal ribs.