Barre chord
fret 2, A shapex24442
B is the B major chord. Its notes are B, D♯ and F♯. A clear, stable sound. A natural home chord in a major key.
x24442
799877
Numbers show frets from the low E string to the high e string; x means don't play that string.
B is the I chord in B major, the IV chord in F♯ major and the V chord in E major. That makes it a natural fit in songs written in those keys.
Every B, D♯ and F♯ on the first 12 frets. The filled dots are the root, B. Build your own shape from any nearby group.
Other B chords
Other major chords