A codex was the ancestor of the modern book. Instead of being composed of sheets of paper, it used sheets of vellum or papyrus. The term codex is often used for ancient manuscript books, with handwritten contents.