The term "semiconductor" refers to a substance whose conductivity is between that of conductors and insulators. There are two different kinds of semiconductors: intrinsic semiconductors and extrinsic semiconductors.
Pure elements such as silicon are examples of intrinsic semiconductors.
Extrinsic semiconductors are created by putting additional impurities into them to increase their conductivity.
Depending on the impurity's characteristics, extrinsic semiconductors can be either n- or p-type. Pentavalent impurities are added to n-type semiconductors, whereas trivalent impurities are added to p-type semiconductors.
Since the intrinsic semiconductor material has four valence electrons while the trivalent impurity has three, the dopant atom will establish a covalent bond with the surrounding atom when the two are present. Examples of trivalent impurities include aluminum, boron, and others. Therefore, there will be a gap or vacancy.
We have a lot of holes since we have trivalent impurities. The predominant charge carrier in a p-type semiconductor is a hole.
When compared to the number of holes, the number of electrons in a p-type semiconductor is extremely low. The majority of charge carriers are electrons.
Therefore, both holes and electrons serve as charge carriers in a p-type semiconductor, although holes are far more prevalent than electrons.
Therefore, a p-type semiconductor has a large number of holes and a lower number of electrons as charge carriers.