The most common chords have three notes, called a triad: a root, a third and a fifth. Stack them and you get the basic major and minor chords.
On guitar you play a chord by pressing several strings at once and strumming them all. On piano you press the keys together with one hand.