Electromagnetism is defined as the production
of a magnetic field by current flowing in a
conductor. An electric current has the ability to
produce a magnetic field in a plane
perpendicular to the direction of current flow.
,ILLUSTRATION
= ELECTRIC CURRENT
MAGNETIC FIELD LINES
, Right Hand Rule
The direction depends on the direction of the current flow.
If you put your right thumb on the direction of the current flow then the direction
of your finger where it is curling in holds the direction of the magnetic field.