Under the glass of your phone is an invisible grid of transparent wires. They hold a tiny electric charge at every crossing β a capacitance map. Your fingertip is slightly conductive, so when it nears the glass it quietly siphons charge away from the wires right below it. The chip notices the dip, works out exactly where from which wires changed, and that becomes your touch. Move a "finger" over the grid below and watch it happen.
Rows and columns of clear electrodes cross to make a grid of sensing nodes. Each node holds a baseline charge. Move your mouse (or finger) over the canvas: where it hovers, charge is pulled away and the capacitance dips β the brighter the cell, the bigger the drop. The controller finds the dip's centre of mass and reports the touch X,Y. Try two fingers (touchscreen) or the multi-touch button β both are detected at once.
Before capacitive screens, phones and PDAs used resistive panels: two flexible conductive layers held a hair apart. A press β by finger, gloved hand, fingernail, or any stylus β pushes the top sheet down to touch the bottom one, shorting them at that point; the voltage there tells you the X,Y. It needs force and reads only one point. Capacitive screens sense the finger's field instead, so they're glass-smooth, multi-touch, and bright β but they ignore a gloved finger or plastic stylus, which carry no charge. Flip the toggle to compare.
The same trick, scanned thousands of times a second: