United States Flag Code

Although this is a U.S. federal law,[1] the code is not mandatory: it uses non-binding language like "should" and "custom" throughout and does not prescribe any penalties for failure to follow the guidelines.

L. 105–225, largely codified in Title 36 of the U.S. Code), addresses conduct when the U.S. National Anthem is being played while the flag is present.

That law suggests civilians in attendance should face the flag "at attention" (standing upright) with their hand over their heart.

[citation needed] The Army Specialist Greg L. Chambers Federal Flag Code Amendment Act of 2007 added a provision to allow governors, or the mayor of the District of Columbia, to proclaim that the flag be flown at half-staff upon the death of a member of the Armed Forces from any State, territory, or possession who died while serving on active duty.

The provision directs federal facilities in the area covered by the governor or mayor of the District of Columbia to fly the flag at half-staff consistent with such proclamations.

Technical Drawing TIOH 5-1-17 found in Federal Specification DDD-F-416F of proper dimensions and standards of United States Flag.
Marines and a sailor aboard USS Nassau practice folding a flag in 2009.
The proper way to fold a flag