Open shape
xx0232
D is the D major chord. Its notes are D, F♯ and A. A clear, stable sound. A natural home chord in a major key.
xx0232
x57775
10-12-12-11-10-10
Numbers show frets from the low E string to the high e string; x means don't play that string.
D is the I chord in D major, the IV chord in A major and the V chord in G major. That makes it a natural fit in songs written in those keys.
Every D, F♯ and A on the first 12 frets. The filled dots are the root, D. Build your own shape from any nearby group.
Other D chords
Other major chords