Biting and hitting are big no-nos but how do you communicate that to a toddler? Try making your disapproval known by stating loudly and firmly that it’s not okay or catching their arm mid hit to grab their attention.
Summary: https://www.parents.com/toddlers-preschoolers/discipline/improper-behavior/breaking-your-toddlers-bad-habits/.