A type of learning that occurs during a critical period when animals form attachments to objects or other animals.