D6 is made of these notes: D (root), F# (major third), A (fifth), B (major sixth).
With this shape the strings sound like this, from the D string to the D string: D, B, B, F#.
A sixth chord sounds bright and a little old-fashioned, like swing or Hawaiian music. It can replace the major chord.