In p-type semiconductors doping is done by a trivalent element and holes are majority charge carriers. Whereas, in n-type semiconductors doping is done by a pentavalent element and electrons are majority charge carriers.