An AND-Gate consists of three PMOS transistors and three NMOS transistors.
It has two inputs, here the purple and the orange nodes. In this example, both inputs are controlled by rectangle voltage sources. The output in this example is the green node...
Only if both inputs are high, then the red node is pulled to ground, because the two NMOS-transistors between ground and the red node conduct therefor pull the red node to ground, and the two PMOS-transistors between the positive node and the red node both block.
An AND-Gate consists of three PMOS transistors and three NMOS transistors.
The images and descriptions of the circuit on this page are public domain.
You may download it, copy it, modify it, distribute it, even if you do not cite the source.
Nevertheless, you might want to cite correctly:
Title=Digital Circuit 02 AND-gate
Author=Benedikt Sessler
Date=25.Sept 2020
Link=https://www.cirnavsys.com/courses/digital-circuit-02-and-gate