This is based on CMOS technology.
Blue and Green waves are pulse input and the Orange wave is the output signal. When two inputs are in high then the output is low, otherwise the output is low according to NAND conditions.
With NAND gate, you can design any other kind of gates.