electromagnetic force has some similarities to the gravitational force.
Modern Physics has now accepted something known as the Standard Model as a description of all fundamental particles and three of the four fundamental forces that act between these particles (electromagnetism, weak nuclear force, strong nuclear force). The model regards all forces as being 'transmitted' by a type of particle known as bosons, which are exchanged between particles in order to transmit a force.
The Standard Model regards all electromagnetic radiation, which comprises the 'electromagnetic spectrum' and is responsible for the electromagnetic force, as consisting of discrete quanta (particles) known as photons. These photons have a number of distinguishing properties.
Equally, although the Standard Model does not formally include gravity, it is currently accepted that the gravitational force must be transmitted in the same way as the other forces. The boson responsible has become known as the graviton, and again has a number of distinguishing properties. The reason for any uncertainty and assumption here is because the graviton is yet to be observed (this would be expected because gravity is by far the weakest force, making the graviton most difficult to observe).
By comparing the fundamental properties of these bosons, it is clear that photons and gravitons are different, although they do share some of the same properties.