If there is no speed, I circle strafe, but if there is speed, then A and D tapping is probably the best.
I don't even know what I do while pvping but it always seems to work out really well All these people playing minecraft who think they will get better from watching tutorials on how to strafe and all that stuff, just play the game and it will work too