The process by which individuals learn socially acceptable norms and behaviors associated with their gender.