If you are holding a current carrying straight conductor in your right hand such that the thumb points towards the direction of current , 'then your finger will wrap around the conductor in the direction of the field lines of the magnetic field. This is known as right hand thumb rule .
Since the current passes through the loop in clockwise direction , the front face of the loop will be the south pole and the back face is the touching the table will be north pole. According to the right -hand rule ,the direction of magnetic field inside the loop will be pointing downward . Outside the loop, the direction of the magnetic field will be upward .
