One of Parliament’s main roles is debating and passing laws, and Parliament’s public website has an excellent guide to the process, describing all the different types of Bills and Secondary Legislation.
You can find the guide here: https://www.parliament.uk/about/how/laws/