The title "Mr. President" (m.) or Madam President (f.) may apply to a person holding the title of president, or presiding over certain other governmental bodies.
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 président de la Chambre des communes in French, and Mr. Speaker in English.
The 1787 Constitution of the United States did not specify the manner of address for the president. 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".
Washington consented to the demands of James Madison and the United States House of Representatives that the title be altered to "Mr. President." Nonetheless, later "The Honorable" became the standard title of the President in formal address, and "His/Her Excellency" became the title of the President when addressed formally internationally.
Historically, the title was reserved for the incumbent president only, and was not to be used for former presidents, holding that it was not proper to use the title as a courtesy title when addressing a former president. According to the official website of the United States of America, the correct way to address a letter is to use "The Honorable John Doe" and the correct salutation is "Mr Doe".  Despite that, some sources maintain that living former U.S. presidents continue to be addressed as "Mr. President", both formally and informally, and some 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./Madame President", especially the Vice President, who is the President of the Senate. 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]" 
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."