How does a touchscreen know where your finger is?
Under the glass is a fine grid of invisible electrodes. Your finger conducts electricity, so it changes the electric field where you touch, and the phone measures exactly where.
A grid of tiny sensors. Under the glass sits a transparent layer of conductive lines in rows and columns. This capacitive touchscreen keeps a small electric field across the whole surface.
Your finger steals a little charge. Skin conducts electricity, so a fingertip changes the charge stored where lines cross. The phone scans the grid many times a second to find those spots.
Why gloves fail. Ordinary gloves and fingernails don't conduct electricity, so the screen can't feel them at all. Touchscreen gloves have thin conductive threads woven into the fingertips to fix that.
Key words: capacitive touchscreen

Sources: Library of Congress and Encyclopaedia Britannica. How we check our facts
