You're right, despite the US Flag Code prohibiting the use of the US flag on apparel, many clothing items feature images of the US flag. This is because the US Flag Code is advisory and non-binding, so there are no legal penalties for violating it. Some key points:
• The US Flag Code specifically states that the US flag should not be embroidered, printed, or otherwise impressed on such articles as cushions, handkerchiefs, napkins, boxes, or anything intended to be discarded after temporary use. This includes clothing.
• However, the US Supreme Court has ruled that using the US flag on apparel is a form of free speech protected by the First Amendment. So prohibiting it could violate constitutional rights.
• The US Flag Code aims to prevent the "desecration" of the flag by using it on disposable items, but the Supreme Court ruled that apparel is not a desecration. As long as the image of the flag is used respectfully, it is protected free speech.
• Many Americans see wearing the US flag as a way to show patriotism and pride in their country. While it may violate the letter of the Flag Code, it does not necessarily violate the spirit of showing respect and pride in the nation.
• The US Flag Code is not enforced and there are no legal consequences for violating it. No one can be prosecuted or penalized for wearing US flag apparel or using it in other ways that the Flag Code prohibits.
• Some have argued the Flag Code needs updating to reflect the modern use of flag in advertising, apparel and other areas. But others argue it should remain advisory to encourage the most respectful and dignified use of the national flag.
• Government agencies and officials often avoid using the flag on apparel or in ways that violate the Flag Code, even though it is non-binding, to set an example. But private citizens and groups are free to use the flag as they wish.
So in summary, while the US Flag Code prohibits using the flag on apparel, the First Amendment protects it as free speech and the Flag Code is non-binding. US flag apparel remains very popular, despite going against the recommendations of the Flag Code. There is no legal prohibition against it.