There are two types of legislation in the UK:
Primary legislation: Acts of Parliament, alternatively called 'statutes'. Acts are assigned a sequential chapter number (c.) within each calendar year.
Secondary legislation (also called delegated legislation): regulations, rules and orders usually made under powers provided by Acts of Parliament. These are known as Statutory Instruments (SI for short). The SIs within each calendar year are given a sequential number.
You'll find original Acts from 1887 onwards bound in red volumes of Public General Acts, and SIs from 1966 in blue volumes of Statutory Instruments shelved in chronological order in the UK legislation section of the Library.
To locate the legislation you seek, go to this section and the bound annual volumes for the type of your provision (Act or SI) for the relevant year. Locate the specific provision within that year by its chapter or running number.
The text of older Acts may be found in the volumes of The Statutes at Large (Magna Carta to 1869) and Public General Statutes (1870-1886) shelved in this section. Reproductions of Acts from 1235-1713 are contained in the volumes of The Statutes of the Realm, available on request from Closed Access.
The UK legislation section also houses non-official sets:
These sets can be more useful than the original text because they contain explanatory commentary and details of cases concerning particular Acts or SIs.
United Kingdom legislation
The text of Acts and Statutory Instruments in force is available on both of the following Library databases, with the option to view current and historical versions:
The UK's Government's official Legislation.gov.uk website provides free access to original and revised versions of legislation. Note that not all types of legislation are fully up to date, and for this reason you should generally prefer the current versions on LexisLibrary and Westlaw UK. Legislation passed by the devolved national assemblies of Northern Ireland, Scotland and Wales are also included.
PDF copies of the original text of UK Public Acts (1988-) and Local Acts (1991-) are available on the Library Public Information Online database, together with recent legislation of the Scottish Parliament and the Welsh and Northern Irish Assemblies.
You'll find the official explanatory notes to UK and regional Acts on both Legislation.gov.uk and Public Information Online.
As a last alternative, the British and Irish Legal Information Institute (BAILII) provides free access to original versions of modern Acts (1988 onwards) and wholly or partially updated versions of older Acts, plus the full-text of SIs from 2002.
The European Union's free EUR-Lex legal portal is the principal site for accessing the official text of EU legislative instruments, such as Regulations, Directives and Decisions. EU legislation may also be viewed through the Library's LexisLibrary and Westlaw UK databases. The progress of EU legislative measures is best checked through the Legislative Procedures section of EUR-Lex and the European Parliament's Legislative Observatory service.
LexisLibrary and Westlaw both contain extensive collections of legislation from North America, with variable coverage of Commonwealth and other jurisdictions.
Globally, much is freely available on the Web on official national sites, including:
The World Legal Information Institute (WorldLII) serves as a handy subject portal to such sites and to alternative sources of national legislation for different countries.