A codex is a collection of written, typed or printed sheets that are bound together to create a book. The term comes from the Latin word for "block of wood," as ancient books were originally written on wooden tablets before being transferred to papyrus scrolls and eventually to modern paper-based codices.