Both the surface wave in water, and light waves in space, obey a wave
equation: there's some sense in which a time-delay and a spatial
distance displacement both are cyclic (the time-delay giving a frequency
of repetition, and the spatial displacement giving a wavelength).
Aside from that, they're completely different. The ripple in the
water is peculiar to the water surface and always an up/down direction. Underwater you get also longitudinal-motion "P waves", the surface "S waves" are transverse-motion waves (movement is perpendicular to wave travel
direction, with some fluid rotation).
Water waves are different in shallow water and in deep water. Gentle
swells in deep water turn to breaking surf in shallow water, partly
because of the fluid rotation coupled to the surface movement.
Light waves in space have transverse character (two different polarizations).
The E and B fields are always orthogonal to the propogation direction.
It gets complicated in nonisotropic materials, the electromagnetic fields in
a piece of calcite (Iceland spar) do NOT obey a wave equation: there's
a complex quantity, called the 'Ewald vector' that does, however, and the result
is a double wave equation, one for 'ordinary rays' and the other for
'extraordinary rays'.
So, there are similarities (time and space cyclic repetition), and differences
(everything else). Wave propogation is a very deep subject, spreading
over multiple disciplines, including oceanic movement and X-ray crystallography
and traffic blockages.