Answer:
Since 1998, federal law states that during a rendition of the national anthem, when the flag is displayed, all present including those in uniform should stand at attention; non-military service individuals should face the flag with the right hand over the heart.
Hope this helps:)