D is made of these notes: D (root), F# (major third), A (fifth).
With this shape the strings sound like this, from the G string to the E string: A, D, A, F#.
A major chord sounds bright, solid and happy. With just three major chords you can already accompany lots of songs.
D belongs to these major keys: D major (degree I), A major (degree IV), G major (degree V).