In the U.S., no law specifically prohibits dancing during the anthem. However, flag desecration laws exist. Dancing could be seen as disrespectful, especially if mocking. It may also be considered protected free speech (First Amendment). Ultimately, appropriateness is a personal judgment.