A logic gate is a fundamental component of a digital circuit. Each gate has one or more inputs and produces a single output that depends on the input(s). Multiple logic gates can be combined to make complex circuits to carry out processing.
Each logic gate has a symbol, that is used in circuit diagrams, and a unique truthtable that shows how the output changes with different inputs.
You can think of the inputs to logic gates as 1s and 0s. These values are determined by the voltage that flows around the system where a high voltage is evaluated as 1(True) and a low voltage is evaluated as 0 (False). Conventionally we usually label the output Q.