The direction of dB is the direction of vector dl × r. From right hand screw rule, if we place a right handed screw at the point where the magnetic field is needed to be determined and turn its handle from dl to r, then the direction in which the screw advances gives the direction of field dB.