The standard grips this chord is usually shown with.
D5 is D and A, a power chord. The shape this page opens on is written x57xxx, lowest string first.

Also written D(no 3rd) or D power chord. The same chord either way; which spelling you meet depends on who wrote the chart.
There are 2 common shapes for D5 on the guitar, and 26 derived voicings in the triad family.
In which keys. Every note of D5 belongs to C major (the ii), D major (the I), D minor (the i), E minor (the ♭VII), F major (the vi), F# minor (the ♭VI), G major (the V), G minor (the v), A major (the IV), A minor (the iv), Bb major (the iii) and B minor (the ♭III).
The common shapes, written lowest string first: x57xxx, 10-12-12-x-x-x.
Triad. Three notes across one string set. D5 has xx023x, x002xx, x0023x, x577xx, 557xxx, 5577xx, x007xx, 10-12-12-x-x-x.
The common shapes and the derived voicings come from different places, and both are explained in where the chords and the theory come from.
Shows each chord the way this style would voice it, and marks which of its alternatives belong to the idiom.