Star-Spangled Banner's song was taken from the British liquor song "To Anacreon in Heaven" first published by The Vocal Magazine (London) in 1778.
The lyrics were taken from Francis Scott Key's poem "Fort of Fort Mehenry" and witnessed an attack on Fort McHenry after being detained by British soldiers during the war of 1812 .
Although the original draft was lost, the key is usually thought to have written lyrics on the back of the envelope. This was probably incorrect as envelopes were not commonly used until 1840; then the letters were written on a piece of paper, folded and sealed with wax. Since the postage at that time was based on the amount of paper used, the envelope wasted and became unnecessary. Since being detained in your ship it is fair to assume that Key has sufficient resources to avoid using any kind of waste paper.
With "Hail Columbia" and "Yanji Dudu", "Starry Shining Flag" is one of the popular patriotic songs after the war of 1812. During the Civil War, 'Flag of the Stars' was an national anthem. In the following decades, allied forces and their songs became increasingly popular, President Woodrow Wilson signed the Presidential Decree in 1916 and called it the "American National Anthem" for all military ceremonies. On March 3, 1931, after 40 attempts failed, the bill passed the parliament and signed the law officially designated as the national anthem of the United States as "Stars and Stripes".
In 1899, the US Navy officially adopted "Star Spangled Banner". In 1916, President Woodrow Wilson ordered the performance of "Star Spangled Banner" at the military and other appropriate scenes. Two years later, this song was played in the seventh match of the first game of the 1918 World Championships, and since that time this song has been quoted as a national anthem in baseball games. "Stars and Stripes" was held at the opening ceremony of Philadelphia in 1897 and then began in Polo Field in New York in 1898. In any case, the national anthem tradition is sung before each performance. Baseball games began in World War II