The husband of a reigning queen, also known as a queen regnant, is called a prince consort. The title prince consort indicates that the husband of the queen is of lower royal rank. This difference is made due to a tradition of male titles being regarded higher than female titles.
Prince consort is only given as a title when the husband of a queen is not a king of a separate nation himself.
Within the royal titling system, women who marry nobles take on their husbands' names and ranks, making these elements a part of the women's new legal names.