A salute is an official acknowledgment of a military rank and
uniform.
In the British Armed Forces a salute is given to holders of the Queens commission as a mark of respect to the monarch, not the person wearing the uniform or the rank they hold. Commissioned officers return the salute on the monarchs behalf.