Op-amps having a common-mode input voltage range that almost covers the GND-VCC or VEE-to-VCC range are called rail-to-rail input op-amps (or full-swing op-amps).
The output stage may also be rail-to-rail. Op-amps with rail-to-rail input and output voltage ranges are called rail-to-rail input/output op-amps.
The differential input stage of most of the conventional op-amps is composed of P-channel MOSFETs. When the input voltage is close to VDD, op-amps with a differential input pair composed of P-channel MOSFETs do not provide a normal output, because a current source enters the linear region and gain is reduced.
Op-amps with a differential input pair composed of N-channel MOSFETs do not provide a normal output when the input voltage is close to GND.
Conversely, op-amps with a differential input pair composed of P-channel MOSFETs provide a normal output even when the input voltage is close to GND.
The input stage of rail-to-rail input op-amps, which consist of an N-channel differential MOSFET pair and a P-channel differential MOSFET pair connected in parallel, covers almost the entire voltage range from GND to VDD.