No U.S. law requires silence during the national anthem. The U.S. Flag Code (4 U.S.C. § 301) suggests standing, facing the flag, hand over heart — but uses "should," not "must." No penalties for non-compliance.
Strong cultural expectation of respectful behavior (standing, removing hats, silence). Violations may draw social criticism, employer consequences (private sector), or venue ejection — but not legal penalties.
Service members in uniform: salute. Veterans/out of uniform: hand over heart. Codified in DoD instructions, not criminal statute.