A major development in infantry tactics came with the increased use of trench warfare in the 19th and 20th centuries. This was mainly employed in World War I in the Gallipoli campaign, and the Western Front. Trench warfare often turned to a stalemate, only broken by a large loss of life, because, in order to attack an enemy entrenchment, soldiers had to run through an exposed 'no man's land' under heavy fire from their opposing entrenched enemy.
These forces demobilized in 1784 after the Treaty of Paris ended the War for Independence. The Congress of the Confederation created the current United States Army on 3 June 1784. The United States Congress created the current United States Navy on 27 March 1794 and the current United States Marine Corps on 11 July 1798. All three services trace their origins to their respective Continental predecessors. The 1787 adoption of the Constitution gave the Congress the power to "raise and support armies", to "provide and maintain a navy" and to "make rules for the government and regulation of the land and naval forces", as well as the power to declare war. The President is the U.S. Armed Forces' commander-in-chief.
Personnel may be recruited or conscripted, depending on the system chosen by the state. Most military personnel are males; the minority proportion of female personnel varyies internationally (approximately 3% in India, 10% in the UK, 13% in Sweden, 16% in the US, and 27% in South Africa). While two-thirds of states now recruit or conscript only adults, as of 2017 50 states still relied partly on children under the age of 18 (usually aged 16 or 17) to staff their armed forces.
Military law introduces offences not recognised by civilian courts, such as absence without leave (AWOL), desertion, political acts, malingering, behaving disrespectfully, and disobedience (see, for example, Offences against military law in the United Kingdom). Penalties range from a summary reprimand to imprisonment for several years following a court martial. Certain fundamental rights are also restricted or suspended, including the freedom of association (e.g. union organizing) and freedom of speech (speaking to the media). Military personnel in some countries have a right of conscientious objection if they believe an order is immoral or unlawful, or cannot in good conscience carry it out.
Your ASVAB scores determine what jobs you will qualify for in the military. But before you embarrass yourself in front of active duty service members, know that a job in the Army and the Marine Corps is called an MOS, which is an acronym for Military Occupational Specialty. In the Air Force, jobs are called AFSC – Air Force Specialty Code. In the Navy they are known as an NEC - Navy Enlisted Classification and the Coast Guard, jobs are called ratings, or rate for short.