By the term "transistor" one generally thinks mostly of bipolar transistors. Other transistors are identified by an addition to the term (for example: field effect transistor).
Basically there are two types of bipolar transistors, the NPN- and the PNP transistor. This term is derived from the internal structure. Transistors have three terminals:
The terminals are usually not marked on the component. For this you need the data sheets.