UK Teritorial Airspace is the UK FIR over which the UK has responsibility to provide Air Traffic Services. There are some exceptions and bilateral agreements listed in the UK AIP.
The 3nm boundary applies to overflight of another country. I recall doing experimental flying in the SW Approaches where we had to avoid overflight of the Republic of Ireland by 3nm because we did not have any diplomatic clearance.