The compulsory education model in the United States is generally:
8 years of primary school +4 years of secondary school = 12 years.
6 years in primary school+2 years in junior high school+4 years in senior high school = 12 years.
5 years primary school +3 years junior high school +4 years senior high school = 12 years.
So both modes are 12 years. In addition, if American children are under 16 years old but don't go to school, both children and parents will be arrested, so it is not only compulsory education, but also compulsory education.
The education system in Britain is very different from that in Chinese mainland. Generally speaking, there is no distinction between junior high school and senior high school in Britain. After graduating from the fifth grade of middle school, compulsory education has been completed.
Compulsory education is followed by "third level" education, including pre-university education, which far exceeds pre-university education. However, for high school students in Chinese mainland, we only need to pay attention to the preparatory education curriculum.