In 1923, a group of organizations headed by the American Legion outlined the National Flag Code as a set of rules on how to correctly display the flag, which were then turned into law during World War II as the United States Flag Code. Just in case you need a quick rundown of the flag dos-and-don'ts, here are some lesser-known rules for displaying the flag. It looks like you should definitely make sure the American flag is up top. But pair it with the American flag, and a few different rules must take effect. In general, your right to display the United States flag is protected by federal law via the Freedom to Display the American Flag Act of 2005.