I am playing guitar from last three months, improved a lot..but still confuse in some chords.

some people tell that play A chord like this A- 002220 and some say that play it like this A- x02220.

they also say to play the following chords like this.

D- x00232 or D- xx0232
Dm- x00231 or Dm- xx0231

which is the right method to play these chords.

please also tell me how to play: B, Bm, Am, G, F, C etc

I know how to play these chords, just confused