Adopted in the 1790s by George Washington, the first president of the United States, as his official manner of address as head of state, "Mr. President" has subsequently been used by other governments to refer to their heads of state. It is the conventional translation of non-English titles such as Monsieur le Président for the president of the French Republic. It also has a long history of usage as the title of the presiding officers of legislative and judicial bodies. The speaker of the House of Commons of Canada is addressed as Monsieur le Président in French, and Mr. Speaker in English.
The 1787 Constitution of the United States did not specify the manner of address for the chief executive. When George Washington was sworn in as the first president of the United States on April 30, 1789, the administering of the oath of office ended with the proclamation: "Long live George Washington, President of the United States." No title other than the name of the office of the executive was officially used at the inauguration. The question of a presidential title was being debated in Congress at the time, however, having become official legislative business with Richard Henry Lee's motion of April 23, 1789. Lee's motion asked congress to consider "what titles it will be proper to annex to the offices of President and Vice President of the United States - if any other than those given in the Constitution."Vice President John Adams, in his role as President of the United States Senate, organized a congressional committee. There Adams agitated for the adoption of the style of Highness (as well as the title of Protector of Their [the United States'] Liberties) for the President. Adams and Lee were among the most outspoken proponents of an exalted presidential title.
Others favored the variant of Electoral Highness or the lesser Excellency, the latter of which was vociferously opposed by Adams, who contended that it was far beneath the presidential dignity, as the executives of the states, some of which were also titled "President" (e.g. the President of Pennsylvania), at that time often enjoyed the style of Excellency; Adams said that the president "would be leveled with colonial governors or with functionaries from German princedoms" if he were to use the style of Excellency. Adams and Richard Henry Lee both feared that cabals of powerful senators would unduly influence a weak executive, and saw an exalted title as a way of strengthening the presidency. On further consideration, Adams deemed even Highness insufficient and instead proposed that the executive, both the president and the vice president (i.e., himself), be styled Majesty to prevent the "great danger" of an executive with insufficient dignity. Adams' efforts were met with widespread derision and perplexion; Thomas Jefferson called them "the most superlatively ridiculous thing I ever heard of", while Benjamin Franklin considered it "absolutely mad".
In past years, some guidebooks on manners maintained that in the U.S., the title should be reserved for the incumbent president only, and should not be used for former presidents, holding that it was not proper to use the title as a courtesy title when addressing a former president. Despite that, all living former U.S. presidents continue to be addressed as "Mr. President", both formally and informally, and contemporary experts on etiquette now maintain that it is entirely appropriate.
In the United States, the title "Mr. President" is used in a number of formal instances as well: for example anyone presiding over the United States Senate is addressed as "Mr. President." Other uses of the title include presidents of state and local legislatures, however only the president of the United States uses the title outside of formal sessions.
Thomas Hungerford, who became the first speaker of the English House of Commons in 1376, used the title, "Mr. Speaker," a precedent followed by subsequent -speakers of the House of Commons. This influenced parliamentary usage in France.
By the 18th century, the president of a French parlement was addressed as "Monsieur le Président." In Pierre Choderlos de Laclos's 1782 novel Les Liaisons Dangereuses ("Dangerous Liaisons"), the wife of a magistrate in a parlement is referred to as Madame la Présidente de Tourvel ("Madam President of Tourvel"). When the Second French Republic was established in 1848, "Monsieur le Président" became the title of the president of the French Republic.
The speaker of the House of Commons of Canada, established in 1867, is also addressed as "Monsieur le Président" or "Madame la Présidente" in French.
Titles for a president's spouse, if female, have ranged from "Marquise," "Lady" to simply "Mrs." or "Ms." If male the title of the president's spouse may be "Marquis", "Lord", or merely "Mr.".
President George Washington's wife, Martha Washington, was often called "Lady Washington." By the 1850s in the United States, the term "lady" had changed from a title of nobility to a term of address for a respected and well-mannered woman. The use of "First Lady" to refer to the wife of the president of the United States was popularized about the time of the US Civil War. Dolley Madison, the wife of President James Madison, was remembered after her death in 1849 by President Zachary Taylor as "truly our First Lady for a half a century." First ladies are usually referred to simply as "Mrs. [last name]" 
The United States has never elected a woman as president. If the United States elects a married woman as president, her husband (if she has one) will presumably be addressed as either First Man or First Gentleman while the president herself will presumably be addressed as Madam President.
On 8 November 2016, the night of the 2016 presidential election in the United States, images of leaked pre-printed copies of Newsweek magazine showed the magazine celebrating the win of the Democratic candidate Hillary Clinton, with the cover titled "Madam President". It is common for Newsweek to prepare for the eventuality of either candidate winning, though it was unusual that it was both published and distributed; the cover was pulled from newsstands after it became clear that Donald Trump had secured a majority of electoral votes, winning the election.
When addressing a former President of the United States in a formal setting, the correct form is "Mr. LastName." ("President LastName" or "Mr. President" are terms reserved for the current head of state.)
Mrs. Trump added that, "the scents of jasmine and roses fill the air as we give thanks for this great Nation and the glory of renewal."