What notes are in the D major piano chord?
D major (D) is a major triad containing D, F♯ and A. Its interval formula is root, major third and perfect fifth.
What are the inversions of D?
D has 3 positions: root position (D–F♯–A), first inversion (F♯–A–D) and second inversion (A–D–F♯). Each inversion contains the same chord tones but puts a different note in the bass.
These are reference note spellings in twelve-tone equal temperament, not fixed fingerings. See the keys, hear each voicing, or learn chord spelling.