Logic gates are basic building blocks of digital circuits and systems. Common logic gates include AND, OR, NOT, NAND, NOR, XOR, and XNOR gates. AND gates output 1 only if all inputs are 1, while OR gates output 1 if any input is 1. NOT gates output the inverse of the single input. NAND and NOR gates are combinations of AND/OR with NOT gates. XOR and XNOR gates output 1 only if inputs are both the same or different respectively.