Law & Order C&E M. Teal. Types of Codes Moral Code – A code of conduct. What is right/wrong. Defined by Society. Legal Code – A type of legislation.