The standard grips this chord is usually shown with.
B5 is B and F#, a power chord. The shape this page opens on is written x24xxx, lowest string first.

Also written B(no 3rd) or B power chord. The same chord either way; which spelling you meet depends on who wrote the chart.
There are 2 common shapes for B5 on the guitar, and 22 derived voicings in the triad family.
In which keys. Every note of B5 belongs to C# minor (the ♭VII), D major (the vi), Eb minor (the ♭VI), E major (the V), E minor (the v), F# major (the IV), F# minor (the iv), G major (the iii), Ab minor (the ♭III), A major (the ii), B major (the I) and B minor (the i).
The common shapes, written lowest string first: x24xxx, 799xxx.
Triad. Three notes across one string set. B5 has x244xx, 224xxx, 2244xx, 799xxx, x-9-9-11-x-x, xxx477, xx447x, 7x447x.
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.