The population of the United Kingdom was estimated at over 67.0 million in 2020. It is the 21st most populated country in the world and has a population density of , with England having significantly greater density than Wales, Scotland, and Northern Ireland. Almost a third of the population lives in south east England, which is predominantly urban and suburban, with about 9 million in the capital city, London, whose population density is just over 5,200 per square kilometre (13,468 per sq mi). The population of the UK has undergone demographic transition—that is, the transition from a (typically) pre-industrial population, with high birth and mortality rates and slow population growth, through a stage of falling mortality and faster rates of population growth, to a stage of low birth and mortality rates with, again, lower rates of growth. This growth through 'natural change' has been accompanied in the past two decades by growth through net immigration into the United Kingdom, which since 1999 has exceeded natural change. The United Kingdom's high literacy rate (99% at age 15 and above) is attributable to universal state education, introduced at the primary level in 1870 (Scotland 1872, free 1890) and at the secondary level in 1900. Parents are obliged to have their children educated from the ages of 5 to 16 years. In England, 16-17 year olds should remain in education, employment or training (for example, in the form of A-Levels, vocational training, and apprenticeships), until the age of 18. The United Kingdom's population is predominantly White British (81.88% at the 2011 Census), but due to migration from Commonwealth nations, Britain has become ethnically diverse. The second and third largest non-white racial groups are Asian British at 7% of the population, followed by Black British people at 3%. The main language of the country is British English. Some Celtic languages, namely Scottish Gaelic and Irish, are still spoken by minorities in Scotland and Northern Ireland, respectively, and Cornish has been revived to a limited degree in Cornwall; but the predominant language in all these areas is English.