XOR stands for exclusive OR. XOR gates count the number of “1s” available at their inputs and if it is an even number, the output will be “0,” and if it is an odd number, the output will be “1.” (Don’t forget that zero is an even number, so when all inputs are “0”, the output will be “0”.) XOR operation is represented by the symbol ⊕. So Y = A ⊕ B. You can see XOR logic gate symbol in Figure 10 and its truth table right below it.
If you need more than two inputs, you will need to add another XOR gate as shown in Figure 18.
The most famous XOR gate integrated circuit is the 7486 and you can its pinout in Figure 19.