The British postal system runs on a system of alphanumeric codes, or Postcodes. Each postcode begins with a prefix consisting of one or two letters. Normally this prefix denotes the main sorting office through which the post for that place is filtered before being distributed to individual addresses; the only exception to this rule is with postcodes in the inner London area (but this does not correspond completely to other definitions of inner London).
Note that the postcodes, and also the full postal addresses, do not follow local government or traditional county boundaries. The London postal district is much smaller than the boundaries of the Greater London Authority and many areas in outer London have the more standard form of postcode.
Postal counties are no longer required by Royal Mail; and if a postcode is supplied, the county will be ignored. Many people will still quote their address using them, however.
Some of the UK's Overseas Territories have postcodes, valid for all local addresses. There were introduced in 2003 to avoid the misdirection of mail to other destinations, and to help residents of those territories make online purchases from websites that required a postcode in order to validate the address.