It used to be, that when a car was sold, there may be some tax left on it that could be sold with the car. Some people often used this to seal the deal and some garages agreed to put 6 or even 12 months tax on a car if the person agreed to buy it. From October 2014 the government decided to change how the taxing system works allowing people to do it all online. They have linked it up to the national insurance and MOT database which means the system will automatically check for these prior to issuing the tax/ You can also opt to pay your car tax monthly, which came as a massive help to many people that dreaded the 6 monthly or annual tax bill.
With the introduction of these rules also came one stating that tax cannot be sold with the vehicle, the current owner would need to declare that they have sold it and claim back any tax over paid whilst the new owner would need to apply for the tax again.