are there 2 basic-type of CRT deflection-yoke coil?
The electron beam is always deflected at right angles to the magnetic field lines.

In your first image, horizontal deflection is created by vertical field lines, which are generated by the coils above and below the beam.

In your second image, the vertical field lines are generated by the coils to the left and right of the beam.

Note the difference in the orientation of the windings in the two images.