Chattel slavery or traditional slavery is the system of slavery where people are treated as the chattel or personal property of the owner. In this system people are bought and sold as commodities. In addition to being viewed as property, the status of slave is inherited from an enslaved mother to child, and there is no means by which a slave could earn or buy their freedom.
Black codes (also called Black Laws) were laws enacted starting in 1865 in order to control the behavior of newly freed Blacks in the former Confederacy during the post-Civil War Reconstruction Era. Based on pre-Emancipation Slave Codes, the laws were designed to replace the social controls of slavery that had been removed by the Emancipation Proclamation and the Thirteenth Amendment to the Constitution (Encyclopedia Britannica).
Examples of Black Codes (HERB, 2020)