What is the national anthem? Section 301 of title 36 of the United States Code, on the U.S. Code site run by the House Office of the Law Revision Counsel and captured on December 2, 2026, says "The composition consisting of the words and music known as the Star-Spangled Banner is the national anthem." The same section sets out how people should act during a rendition, including that members of the Armed Forces and veterans who are present but not in uniform "may render the military salute". This page reports that statute as it stood on December 2, 2026. It is an explainer of one page, and official wording can change. (36 U.S.C. 301)
VetBoss is not affiliated with, endorsed by or sponsored by any government agency or military service.
The designation
The statute is titled "National anthem," and its first subsection is headed "Designation." It says the composition consisting of the words and music known as the Star-Spangled Banner is the national anthem. That is the whole of subsection (a). It says nothing about who wrote the song or when, and this explainer does not add that.
Conduct during a rendition
Subsection (b) is headed "Conduct During Playing." It says that during a rendition of the national anthem, the rules differ depending on whether the flag is displayed. The wording is "should" or "may" in each part that the page sets out, and this explainer keeps those words.
When the flag is displayed
When the flag is displayed, the statute sets out three groups. First, "individuals in uniform should give the military salute at the first note of the anthem and maintain that position until the last note".
Second, "members of the Armed Forces and veterans who are present but not in uniform may render the military salute in the manner provided for individuals in uniform". The statute uses the word "may" for this group, and this explainer keeps it.
Third, "all other persons present should face the flag and stand at attention with their right hand over the heart". The statute adds that men not in uniform, if applicable, should remove their headdress with their right hand and hold it at the left shoulder, the hand being over the heart.
When the flag is not displayed
For the case where the flag is not displayed, the statute says "all present should face toward the music and act in the same manner they would if the flag were displayed." In other words, the same three groups follow the same conduct, with the direction of facing set by the music instead of the flag.
How the page says the wording changed
The page's source credit lists the original law as Public Law 105-225 of August 12, 1998, and a later law, Public Law 110-417 of October 14, 2008. Its amendments note says the 2008 law added the three lettered parts of the flag-displayed rule and struck out the earlier version.
The earlier version, as the note prints it, said all present except those in uniform should stand at attention facing the flag with the right hand over the heart, that men not in uniform should remove their headdress, and that individuals in uniform should give the military salute at the first note. This is the page's history of its own wording, and this explainer does not read more into it.
What this page does not cover
This page does not describe any event or ceremony. It does not give the history of the song. The statute says what people should or may do, and this explainer reports only that. For any question about the anthem, the official statute linked above is the place to start. Official wording can change. Nothing here is legal advice.
Planning your next career step? Check your eligibility.
Where VetBoss fits
Step Into Tech is VetBoss's AI Engineer path, in two stages. Stage 1, Full Stack Developer, covers HTML and CSS, JavaScript, Python, React JS, Certified GPT and MySQL, in live instructor-led classes with hands-on projects. Stage 2 is the apprenticeship part of the path and is not open yet: Join waiting list. See Step Into Tech.
Your next step
That's what that official statute says about the national anthem. If you have served, thank you for your service. If you're weighing your next step after service, the team is here to talk it through. Our military skills translator is a good place to start.
Book an eligibility call, or call 855-VET-BOSS (855-838-2677).