Gyroscope Vs Accelerometer

What is difference between Gyroscope and Accelerometer?
At present I can’t able to distinguish it because both detect just device rotation.

If anybody share some knowledge regarding this then it is really become helpful to me.

A gyroscope is a device that uses Earth’s gravity to help determine orientation. If you need only apply a rotation, you must use a gyroscope.

An accelerometer is a compact device designed to measure non-gravitational acceleration. This it is using for movements.

now you can use your accelerometer for VR. all devices Are compatible with accelerometer: