Diving regulations are the stipulations of the delegated legislation regarding the practice of underwater diving. They apply within the national territory and territorial waters of a country. In most cases they apply to occupational diving, but in a few cases also to recreational diving. There are exemptions for recreational diving in some cases where it is recognised as a self-regulated industry. Offshore diving (outside of territorial waters) is generally outside the scope of diving regulations, and tends to be self-regulated through voluntary membership of industry organisations.